diff options
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | user-profiles/core.nix | 8 |
2 files changed, 7 insertions, 3 deletions
| @@ -107,7 +107,7 @@ | |||
| 107 | forAllSystems = f: mapAttrs f nixpkgs.legacyPackages; | 107 | forAllSystems = f: mapAttrs f nixpkgs.legacyPackages; |
| 108 | forAllUsers = genAttrs (unique (map accountUserName (attrNames self.nixosModules.accounts))); | 108 | forAllUsers = genAttrs (unique (map accountUserName (attrNames self.nixosModules.accounts))); |
| 109 | 109 | ||
| 110 | activateHomeManagerConfigurations = forAllSystems (system: _pkgs: mapAttrs' (configName: hmConfig: nameValuePair "${configName}-activate" { type = "app"; program = "${hmConfig.activationPackage}/bin/activate"; }) self.homeManagerConfigurations); | 110 | activateHomeManagerConfigurations = forAllSystems (system: _pkgs: mapAttrs' (configName: hmConfig: nameValuePair "${configName}-activate" { type = "app"; program = "${hmConfig.home.activationPackage}/activate"; }) self.homeManagerConfigurations); |
| 111 | activateNixosConfigurations = forAllSystems (system: _pkgs: mapAttrs' (hostName: nixosConfig: nameValuePair "${hostName}-activate" { type = "app"; program = "${nixosConfig.config.system.build.toplevel}/bin/switch-to-configuration"; }) self.nixosConfigurations); | 111 | activateNixosConfigurations = forAllSystems (system: _pkgs: mapAttrs' (hostName: nixosConfig: nameValuePair "${hostName}-activate" { type = "app"; program = "${nixosConfig.config.system.build.toplevel}/bin/switch-to-configuration"; }) self.nixosConfigurations); |
| 112 | 112 | ||
| 113 | overlayPaths = recImport rec { dir = ./overlays; _import = (path: _name: dir + "/${path}"); } // { pkgs = ./pkgs; }; | 113 | overlayPaths = recImport rec { dir = ./overlays; _import = (path: _name: dir + "/${path}"); } // { pkgs = ./pkgs; }; |
diff --git a/user-profiles/core.nix b/user-profiles/core.nix index 91685611..8611a0bd 100644 --- a/user-profiles/core.nix +++ b/user-profiles/core.nix | |||
| @@ -1,8 +1,12 @@ | |||
| 1 | { userName, ... }: | 1 | { flake, userName, lib, ... }: |
| 2 | { | 2 | { |
| 3 | users.users.${userName} = {}; # Just make sure the user is created | 3 | users.users.${userName} = {}; # Just make sure the user is created |
| 4 | 4 | ||
| 5 | home-manager.users.${userName} = { | 5 | home-manager.users.${userName} = { |
| 6 | manual.manpages.enable = true; | 6 | imports = lib.attrValues flake.homeManagerModules; |
| 7 | |||
| 8 | config = { | ||
| 9 | manual.manpages.enable = true; | ||
| 10 | }; | ||
| 7 | }; | 11 | }; |
| 8 | } | 12 | } |
