This commit is contained in:
blahai 2025-02-01 01:32:26 +02:00
parent ffae125fcf
commit d6c098bbbe
No known key found for this signature in database
23 changed files with 92 additions and 587 deletions

View file

@ -1,18 +1,25 @@
{
lib,
self,
self',
pkgs,
config,
inputs,
inputs',
...
}: let
inherit (lib.modules) mkDefault;
inherit (lib.modules) mkIf;
inherit (lib.attrsets) genAttrs;
inherit (lib.options) mkEnableOption;
in {
hjem = {
users = genAttrs config.olympus.system.users (name: ./${name});
options.olympus.system.enableHjem =
mkEnableOption "Should hjem be enabled"
// {
default = true;
};
clobberByDefault = true;
config = mkIf config.olympus.system.enableHjem {
hjem = {
users = genAttrs config.olympus.system.users (name: ./${name});
clobberByDefault = true;
specialArgs = {inherit inputs;};
};
};
}