feat(home-manager): add opt-in my.profiles.home-manager module

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Sv2QAunLcLo3tS1YsfLgN
This commit is contained in:
2026-07-24 12:32:29 +02:00
parent 06bc35f26d
commit 4d42d58126
2 changed files with 22 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@
./development
./home-assistant
./hyprland
./home-manager
./zsh
./paperless
./prowlarr
@@ -0,0 +1,21 @@
{
config,
lib,
inputs,
self,
...
}:
let
cfg = config.my.profiles.home-manager;
in
{
imports = [ self.inputs.home-manager.nixosModules.home-manager ];
options.my.profiles.home-manager.enable = lib.mkEnableOption "home-manager integration";
config = lib.mkIf cfg.enable {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs self; };
};
}