# nixos-config - My current NixOS configuration # # Copyright (C) 2025 Benedikt Peetz # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of my nixos-config. # # You should have received a copy of the License along with this program. # If not, see . { config, lib, system, modules, ... }: let cfg = config.soispha.home-manager; in { options.soispha.home-manager = { enable = lib.mkEnableOption "home-manager with custom config."; }; imports = [ modules.home-manager.nixosModules.home-manager ]; # TODO: Find a way to throw this error below, when a user `enable`s a home-manager # module, but not this module. Without having to plaster all the `home-manager` modules # with `assert`s. <2024-10-18> # builtins.throw "If you want use a home-manager module, you must also enable `soispha.home-manager.enable`."); config = lib.mkIf cfg.enable { home-manager = { useGlobalPkgs = true; useUserPackages = true; # TODO(@bpeetz): Remove this once the legacy -> by-name migration is done. <2025-05-16> users.soispha = import ../../../home.legacy; extraSpecialArgs = { inherit system ; }; }; }; }