mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-18 05:02:10 -08:00
30 lines
624 B
Nix
30 lines
624 B
Nix
|
{
|
||
|
inputs,
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
let
|
||
|
cfg = config.liminalOS;
|
||
|
in
|
||
|
{
|
||
|
imports = [
|
||
|
inputs.home-manager.nixosModules.home-manager
|
||
|
];
|
||
|
|
||
|
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; };
|
||
|
};
|
||
|
}
|