feat: wip module for hosts roles

This commit is contained in:
Dmitriy Kholkin 2025-03-02 14:36:53 +03:00
parent 97f2fd94e6
commit 32e4b957aa
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2

View File

@ -0,0 +1,33 @@
{
config,
lib,
...
}:
let
inherit (lib)
mkIf
mkMerge
mkOption
types
;
role = config.ataraxia.defaults.role;
in
{
options.ataraxia.defaults = {
role = mkOption {
type = types.enum [
"none"
"base"
"server"
"desktop"
];
default = "none";
};
};
config = mkMerge [
(mkIf (role == "base") {
ataraxia.defaults.nix.enable = true;
})
];
}