2024-12-25 19:47:59 -08:00
|
|
|
{
|
2024-12-25 22:50:35 -08:00
|
|
|
inputs,
|
2024-12-25 19:47:59 -08:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
cfg = config.liminalOS;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
2024-12-25 22:50:35 -08:00
|
|
|
inputs.home-manager.nixosModules.home-manager
|
2024-12-25 19:47:59 -08:00
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
2024-12-25 22:50:35 -08:00
|
|
|
extraSpecialArgs = { inherit inputs; };
|
2024-12-25 19:47:59 -08:00
|
|
|
};
|
|
|
|
}
|