summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-08-30 07:00:02 +0530
committersinanmohd <sinan@sinanmohd.com>2024-08-30 07:11:07 +0530
commitd1ed412ae63e847f1e1460dc7777c4f8d1bf23bc (patch)
tree58be5d0d70cc64d6c436787d09aeda9604b984a4
parent1c1a361021652f1c300b4cb4c25585bef11cf064 (diff)
flake/makeHomeImports: append imports from makeGlobalImports
-rw-r--r--flake.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index caee568..d29e372 100644
--- a/flake.nix
+++ b/flake.nix
@@ -24,7 +24,7 @@
] ++ lib.optional (builtins.pathExists ./global/${host})
./global/${host};
- makeHomeImports = host: [
+ makeHomeImports = host: makeGlobalImports host ++ [
./home/common/home.nix
] ++ lib.optional (builtins.pathExists ./home/${host})
./home/${host}/home.nix;
@@ -50,8 +50,7 @@
useGlobalPkgs = true;
useUserPackages = true;
users.${username} = { ... }: {
- imports = (makeHomeImports host)
- ++ (makeGlobalImports host);
+ imports = makeHomeImports host;
};
};
})
@@ -60,8 +59,7 @@
makeHome = host: system: home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
- modules = (makeHomeImports host)
- ++ (makeGlobalImports host);
+ modules = makeHomeImports host;
};
in
{