diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-02 16:51:29 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-02 16:51:29 +0100 |
commit | 171fdf56d4004b407c2f7f71422ade750282674e (patch) | |
tree | 538336881c09e62ed72a6d8c264b910371796e8f | |
parent | 8c946f2d3b36c8e34c1fba4df314f03b74d25a34 (diff) | |
download | nixos-171fdf56d4004b407c2f7f71422ade750282674e.tar nixos-171fdf56d4004b407c2f7f71422ade750282674e.tar.gz nixos-171fdf56d4004b407c2f7f71422ade750282674e.tar.bz2 nixos-171fdf56d4004b407c2f7f71422ade750282674e.tar.xz nixos-171fdf56d4004b407c2f7f71422ade750282674e.zip |
import all modules by default
-rw-r--r-- | flake.nix | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -30,7 +30,7 @@ | |||
30 | inherit (nixpkgs) lib; | 30 | inherit (nixpkgs) lib; |
31 | utils = import ./utils { inherit lib; }; | 31 | utils = import ./utils { inherit lib; }; |
32 | inherit (utils) recImport overrideModule; | 32 | inherit (utils) recImport overrideModule; |
33 | inherit (lib) nixosSystem mkIf splitString filterAttrs listToAttrs mapAttrsToList nameValuePair concatMap composeManyExtensions mapAttrs mapAttrs' recursiveUpdate genAttrs unique; | 33 | inherit (lib) nixosSystem mkIf splitString filterAttrs listToAttrs mapAttrsToList nameValuePair concatMap composeManyExtensions mapAttrs mapAttrs' recursiveUpdate genAttrs unique elem; |
34 | 34 | ||
35 | accountUserName = accountName: | 35 | accountUserName = accountName: |
36 | let | 36 | let |
@@ -60,7 +60,7 @@ | |||
60 | }; | 60 | }; |
61 | accountModules = attrValues (filterAttrs accountMatchesHost self.nixosModules.accounts); | 61 | accountModules = attrValues (filterAttrs accountMatchesHost self.nixosModules.accounts); |
62 | accountMatchesHost = n: _v: accountHostName n == hostName; | 62 | accountMatchesHost = n: _v: accountHostName n == hostName; |
63 | in [ argsModule ] ++ defaultProfiles ++ [ local ] ++ accountModules; | 63 | in attrValues (filterAttrs (n: _v: !(elem n ["systemProfiles" "users" "userProfiles" "accounts"])) self.nixosModules) ++ [ argsModule ] ++ defaultProfiles ++ [ local ] ++ accountModules; |
64 | }; | 64 | }; |
65 | 65 | ||
66 | mkSystemProfile = dir: path: profileName: { | 66 | mkSystemProfile = dir: path: profileName: { |