diff --git a/SwarselSystems.org b/SwarselSystems.org index 6645d35..3c24547 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -4874,6 +4874,34 @@ I usually use =mutableUsers = false= in my NixOS configuration. However, on a ne isImpermanence = lib.mkEnableOption "use impermanence on this system"; isSecureBoot = lib.mkEnableOption "use secure boot on this system"; + + globals = lib.mkOption { + default = { }; + type = lib.types.submodule { + options = { + + services = lib.mkOption { + type = lib.types.attrsOf ( + lib.types.submodule { + options = { + domain = lib.mkOption { + type = lib.types.str; + description = "Domain that the service runs under"; + }; + }; + } + ); + }; + domains = { + main = lib.mkOption { + type = lib.types.str; + description = "My main domain."; + }; + }; + + }; + }; + }; }; } #+end_src diff --git a/modules/nixos/common/sharedsetup.nix b/modules/nixos/common/sharedsetup.nix index 1f8e234..3ceb19e 100644 --- a/modules/nixos/common/sharedsetup.nix +++ b/modules/nixos/common/sharedsetup.nix @@ -22,5 +22,33 @@ isImpermanence = lib.mkEnableOption "use impermanence on this system"; isSecureBoot = lib.mkEnableOption "use secure boot on this system"; + + globals = lib.mkOption { + default = { }; + type = lib.types.submodule { + options = { + + services = lib.mkOption { + type = lib.types.attrsOf ( + lib.types.submodule { + options = { + domain = lib.mkOption { + type = lib.types.str; + description = "Domain that the service runs under"; + }; + }; + } + ); + }; + domains = { + main = lib.mkOption { + type = lib.types.str; + description = "My main domain."; + }; + }; + + }; + }; + }; }; }