diff --git a/flake.nix b/flake.nix index 88897b4f0e2703cb5dadf330c09d6e281d44cc2e..49c801d8fbfa8cdfd2048e9b149b6b57df575d2b 100644 --- a/flake.nix +++ b/flake.nix @@ -58,26 +58,30 @@ inherit system; overlays = [ overlay ]; config.allowUnfree = true; }; - homeManagerConfiguration = - { - de ? false, - }: - home-manager.lib.homeManagerConfiguration { - inherit pkgs; - extraSpecialArgs = { - inherit jolheiser inputs; - }; - modules = [ - agenix.homeManagerModules.age - catppuccin.homeModules.catppuccin - ./home - ./home/gui - ] ++ (pkgs.lib.optional de ./home/de); - }; + homeManagerModules = [ + agenix.homeManagerModules.age + catppuccin.homeModules.catppuccin + ./home + ./home/gui + ]; in { - inherit homeManagerConfiguration; - homeConfigurations."jolheiser" = homeManagerConfiguration { de = true; }; + inherit homeManagerModules; + config = { + inherit jolheiser; + default = jolheiser; + }; + overlays = { + jolheiser = overlay; + default = overlay; + }; + homeConfigurations."jolheiser" = home-manager.lib.homeManagerConfiguration { + inherit pkgs; + extraSpecialArgs = { + inherit jolheiser inputs; + }; + modules = homeManagerModules ++ [ ./home/de ]; + }; nixosConfigurations."genmaicha" = nixpkgs.lib.nixosSystem { inherit system; specialArgs = {