about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/mkHomeManagerConfiguration.nix20
1 files changed, 12 insertions, 8 deletions
diff --git a/nix/mkHomeManagerConfiguration.nix b/nix/mkHomeManagerConfiguration.nix
index 264ba7d..67cee3c 100644
--- a/nix/mkHomeManagerConfiguration.nix
+++ b/nix/mkHomeManagerConfiguration.nix
@@ -2,18 +2,24 @@ inputs@{ self, ... }:
 { system ? "x86_64-linux"
 , username ? "fcuny"
 , hostname
-, stateVersion ? "22.05"
+, stateVersion ? "22.11"
 ,
 }:
 let
   naersk = inputs.naersk.lib."${system}";
 in
 inputs.home-manager.lib.homeManagerConfiguration {
-  inherit system;
-  inherit username;
-  inherit stateVersion;
-
-  homeDirectory = "/home/${username}";
+  modules = [
+    "${self}/home"
+    "${self}/hosts/${hostname}/home.nix"
+    {
+      home = {
+        username = username;
+        homeDirectory = "/home/${username}";
+        stateVersion = stateVersion;
+      };
+    }
+  ];
 
   pkgs = import inputs.nixpkgs {
     inherit system;
@@ -31,6 +37,4 @@ inputs.home-manager.lib.homeManagerConfiguration {
         })
     ];
   };
-  configuration.imports =
-    [ "${self}/home" "${self}/hosts/${hostname}/home.nix" ];
 }