diff --git a/flake.nix b/flake.nix index 0a84effa..25b6f12a 100644 --- a/flake.nix +++ b/flake.nix @@ -70,8 +70,8 @@ home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.users.albert = import ./users/albert/home.nix; - home-manager.users.root = import ./users/root/home.nix; + home-manager.users.albert = import ./users/albert/home.nix { inherit hostname; }; + home-manager.users.root = import ./users/root/home.nix { inherit hostname; }; nixpkgs.overlays = [ nur.overlay ]; diff --git a/users/albert/home.nix b/users/albert/home.nix index a51c90cf..a2372d69 100644 --- a/users/albert/home.nix +++ b/users/albert/home.nix @@ -1,13 +1,10 @@ { config, pkgs, hostname, ... }: { - let hostname = ${hostname} - in { - home.stateVersion = "23.05"; - imports = [ - ../../hosts/${hostname}/gnome-dconf.nix - ../../home-manager/git.nix - ../../home-manager/neovim.nix - ../../home-manager/bash.nix - ../../home-manager/firefox.nix - ]; - } + home.stateVersion = "23.05"; + imports = [ + ../../hosts/${hostname}/gnome-dconf.nix + ../../home-manager/git.nix + ../../home-manager/neovim.nix + ../../home-manager/bash.nix + ../../home-manager/firefox.nix + ]; } \ No newline at end of file