From 9390144b66a86a1c50d4eb7fdaf3376fdb4dcd00 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Mon, 28 Oct 2024 19:19:32 +0100 Subject: [PATCH] Add perso-home with only home-manager conf --- flake.nix | 21 +++++++++++++++++---- hosts/perso-home/home.nix | 20 ++++++++++++++++++++ 2 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 hosts/perso-home/home.nix 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; + }; + }; +}