liminalOS/hm/default.nix

26 lines
554 B
Nix
Raw Permalink Normal View History

{
inputs,
config,
lib,
...
}:
let
cfg = config.liminalOS;
in
{
options.liminalOS.integrateHomeManager = lib.mkOption {
type = lib.types.bool;
default = cfg.enable;
description = ''
Whether to activate home manager with default options. Keep in mind you still have to import the liminalOS home-manager module.
'';
};
config.home-manager = lib.mkIf cfg.integrateHomeManager {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "backup";
extraSpecialArgs = { inherit inputs; };
};
}