Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
homeManagerConfiguration output
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQP7v8sN6DrbMGIRSsdx2PYJdx9etT9mUmOv3rjNrGax1sjJT1+KkgsYafnaKvkRMq7 kjF4nmuyGU9zacuigMxw8= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
6 days ago
1 changed files, 18 additions(+), 22 deletions(-)
flake.nix
M flake.nix -> flake.nix
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
diff --git a/flake.nix b/flake.nix
index 49c801d8fbfa8cdfd2048e9b149b6b57df575d2b..88897b4f0e2703cb5dadf330c09d6e281d44cc2e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -58,30 +58,26 @@         inherit system;
         overlays = [ overlay ];
         config.allowUnfree = true;
       };
-      homeManagerModules = [
-        agenix.homeManagerModules.age
-        catppuccin.homeModules.catppuccin
-        ./home
-        ./home/gui
-      ];
+      homeManagerConfiguration =
+        {
+          de ? false,
+        }:
+        home-manager.lib.homeManagerConfiguration {
+          inherit pkgs;
+          extraSpecialArgs = {
+            inherit jolheiser inputs;
+          };
+          modules = [
+            agenix.homeManagerModules.age
+            catppuccin.homeModules.catppuccin
+            ./home
+            ./home/gui
+          ] ++ (pkgs.lib.optional de ./home/de);
+        };
     in
     {
-      inherit homeManagerModules;
-      config = {
-        inherit jolheiser;
-        default = jolheiser;
-      };
-      overlays = {
-        jolheiser = overlay;
-        default = overlay;
-      };
-      homeConfigurations."jolheiser" = home-manager.lib.homeManagerConfiguration {
-        inherit pkgs;
-        extraSpecialArgs = {
-          inherit jolheiser inputs;
-        };
-        modules = homeManagerModules ++ [ ./home/de ];
-      };
+      inherit homeManagerConfiguration;
+      homeConfigurations."jolheiser" = homeManagerConfiguration { de = true; };
       nixosConfigurations."genmaicha" = nixpkgs.lib.nixosSystem {
         inherit system;
         specialArgs = {