diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-06-20 10:27:25 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-06-20 10:27:25 +0200 |
commit | 7f3bbba059828a8cb7962177ed737f4db2eb7209 (patch) | |
tree | 34d14a118a00d15a4283824a8b8dc843af20becd /flake.nix | |
parent | 0e495ea05daee74d3f608eeeebcadcf139adf76c (diff) | |
download | nixos-7f3bbba059828a8cb7962177ed737f4db2eb7209.tar nixos-7f3bbba059828a8cb7962177ed737f4db2eb7209.tar.gz nixos-7f3bbba059828a8cb7962177ed737f4db2eb7209.tar.bz2 nixos-7f3bbba059828a8cb7962177ed737f4db2eb7209.tar.xz nixos-7f3bbba059828a8cb7962177ed737f4db2eb7209.zip |
...
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -148,8 +148,8 @@ | |||
148 | forAllSystems = f: mapAttrs f (genAttrs systems nixpkgsPackages); | 148 | forAllSystems = f: mapAttrs f (genAttrs systems nixpkgsPackages); |
149 | forAllUsers = genAttrs (unique (map accountUserName (attrNames self.nixosModules.accounts))); | 149 | forAllUsers = genAttrs (unique (map accountUserName (attrNames self.nixosModules.accounts))); |
150 | 150 | ||
151 | activateNixosConfigurations = forAllSystems (system: _pkgs: mapAttrs' (hostName: nixosConfig: nameValuePair "${hostName}-activate" { type = "app"; program = "${nixosConfig.config.system.build.toplevel}/bin/switch-to-configuration"; }) self.nixosConfigurations); | 151 | activateNixosConfigurations = forAllSystems (system: _pkgs: filterAttrs (_n: v: v != null) (mapAttrs' (hostName: nixosConfig: nameValuePair "${hostName}-activate" (if system == nixosConfig.config.nixpkgs.system then { type = "app"; program = "${nixosConfig.config.system.build.toplevel}/bin/switch-to-configuration"; } else null)) self.nixosConfigurations)); |
152 | activateHomeManagerConfigurations = forAllSystems (system: _pkgs: listToAttrs (concatLists (mapAttrsToList (hostName: nixosConfig: mapAttrsToList (userName: userCfg: nameValuePair "${userName}@${hostName}-activate" { type = "app"; program = "${userCfg.home.activationPackage}/activate"; }) nixosConfig.config.home-manager.users) self.nixosConfigurations))); | 152 | activateHomeManagerConfigurations = forAllSystems (system: _pkgs: filterAttrs (_n: v: v != null) (listToAttrs (concatLists (mapAttrsToList (hostName: nixosConfig: mapAttrsToList (userName: userCfg: nameValuePair "${userName}@${hostName}-activate" (if system == nixosConfig.config.nixpkgs.system then { type = "app"; program = "${userCfg.home.activationPackage}/activate"; } else null)) nixosConfig.config.home-manager.users) self.nixosConfigurations)))); |
153 | 153 | ||
154 | overlayPaths = nixImport rec { dir = ./overlays; _import = (path: _name: dir + "/${path}"); }; | 154 | overlayPaths = nixImport rec { dir = ./overlays; _import = (path: _name: dir + "/${path}"); }; |
155 | 155 | ||