diff --git a/flake.nix b/flake.nix index a26517d..aedfb20 100644 --- a/flake.nix +++ b/flake.nix @@ -49,6 +49,11 @@ { name = "perso-laptop"; system = "x86_64-linux"; } { name = "perso-desktop"; system = "x86_64-linux"; } ]; + + home-modules = [ + nix-flatpak.homeManagerModules.nix-flatpak + nix-doom-emacs.hmModule + ]; in { nixosConfigurations = nixpkgs.lib.foldl (c: s: c // { @@ -63,15 +68,23 @@ home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.extraSpecialArgs = inputs; - home-manager.users.florian.imports = [ - nix-flatpak.homeManagerModules.nix-flatpak - nix-doom-emacs.hmModule - + home-manager.users.florian.imports = home-modules ++ [ ./hosts/${s.name}/home.nix ]; } ]; }; }) {} systems; + + homeConfigurations = { + perso-home = home-manager.lib.homeManagerConfiguration rec { + pkgs = import nixpkgs { system = "x86_64-linux"; }; + + modules = home-modules ++ [ + { nix.package = pkgs.nix; } + ./hosts/perso-home/home.nix + ]; + }; + }; }; } diff --git a/hosts/perso-home/home.nix b/hosts/perso-home/home.nix new file mode 100644 index 0000000..c8cac93 --- /dev/null +++ b/hosts/perso-home/home.nix @@ -0,0 +1,20 @@ +{ config, pkgs, ... }: + +{ + imports = [ + ../../modules/home + ]; + + modules.home = { + apps = { + kitty.enable = true; + }; + + shell = { + zsh.enable = true; + atuin.enable = true; + direnv.enable = true; + git.enable = true; + }; + }; +}