From 680c71f0dfc29355e2b80ca44d59d5e10949d439 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 3 Jan 2023 17:05:37 -0800 Subject: feat: update to nix 22.11 --- nix/mkHomeManagerConfiguration.nix | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'nix') 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" ]; } -- cgit 1.4.1