nyx/home/default.nix

26 lines
499 B
Nix
Raw Normal View History

2025-01-26 00:36:34 +02:00
{
lib,
2025-02-01 01:32:26 +02:00
pkgs,
2025-01-26 00:36:34 +02:00
config,
inputs,
...
}: let
2025-02-01 01:32:26 +02:00
inherit (lib.modules) mkIf;
2025-01-26 00:36:34 +02:00
inherit (lib.attrsets) genAttrs;
2025-02-01 01:32:26 +02:00
inherit (lib.options) mkEnableOption;
2025-01-26 00:36:34 +02:00
in {
2025-02-01 01:32:26 +02:00
options.olympus.system.enableHjem =
mkEnableOption "Should hjem be enabled"
// {
default = true;
};
2025-01-26 00:36:34 +02:00
2025-02-01 01:32:26 +02:00
config = mkIf config.olympus.system.enableHjem {
hjem = {
users = genAttrs config.olympus.system.users (name: ./${name});
clobberByDefault = true;
specialArgs = {inherit inputs;};
};
2025-01-26 00:36:34 +02:00
};
}