diff --git a/modules/os.nix b/modules/os.nix index e97b692..e760137 100644 --- a/modules/os.nix +++ b/modules/os.nix @@ -12,19 +12,19 @@ in }; hostName = mkOption { + type = types.nullOr types.str; + default = null; + }; + + domain = mkOption { type = types.str; default = null; }; - # domain = mkOption { - # type = types.str; - # default = "local"; - # }; - - # searchDomains = mkOption { - # type = types.listOf types.str; - # default = [ cfg.domain ]; - # }; + searchDomains = mkOption { + type = types.listOf types.str; + default = [ cfg.domain ]; + }; cert = mkOption { type = types.attrs; @@ -55,8 +55,8 @@ in networking = { hostName = cfg.hostName; - # domain = cfg.domain; - # search = cfg.searchDomains; + domain = cfg.domain; + search = cfg.searchDomains; extraHosts = cfg.extraHosts; };