summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index 1b2758e7..5ade9e1e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -40,13 +40,12 @@
40 }; 40 };
41 modules = 41 modules =
42 let 42 let
43 extraModules = [ 43 defaultProfiles = with self.nixosModules.systemProfiles;
44 sops-nix.nixosModules.sops 44 [ core
45 home-manager.nixosModules.home-manager 45 ];
46 ]; 46
47 defaultProfiles = with self.nixosModules.systemProfiles; [core];
48 local = "${toString dir}/${path}"; 47 local = "${toString dir}/${path}";
49 global._module.args = { 48 argsModule._module.args = {
50 customUtils = utils; 49 customUtils = utils;
51 inherit hostName; 50 inherit hostName;
52 }; 51 };
@@ -56,7 +55,7 @@
56 accountName' = splitString "@" n; 55 accountName' = splitString "@" n;
57 hostName' = elemAt accountName' 1; 56 hostName' = elemAt accountName' 1;
58 in hostName' == hostName; 57 in hostName' == hostName;
59 in extraModules ++ [ global ] ++ defaultProfiles ++ [ local ] ++ accountModules; 58 in [ argsModule ] ++ defaultProfiles ++ [ local ] ++ accountModules;
60 }; 59 };
61 60
62 mkSystemProfile = dir: path: profileName: { 61 mkSystemProfile = dir: path: profileName: {