4d42d58126
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Sv2QAunLcLo3tS1YsfLgN
22 lines
439 B
Nix
22 lines
439 B
Nix
{
|
|
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; };
|
|
};
|
|
}
|