diff options
author | Franck Cuny <franck@fcuny.net> | 2023-01-03 17:05:37 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-01-03 17:05:37 -0800 |
commit | 680c71f0dfc29355e2b80ca44d59d5e10949d439 (patch) | |
tree | 07a832aa8b3015c1181c53deefb110639cd59b97 /nix | |
parent | feat(modules/nix): add binary caches (diff) | |
download | world-680c71f0dfc29355e2b80ca44d59d5e10949d439.tar.gz |
feat: update to nix 22.11
Diffstat (limited to 'nix')
-rw-r--r-- | nix/mkHomeManagerConfiguration.nix | 20 |
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" ]; } |