From 4409de06e5f999827f52d7d767fe93c26e9c7412 Mon Sep 17 00:00:00 2001 From: Jonas Juselius Date: Wed, 18 Nov 2020 20:24:47 +0100 Subject: [PATCH] Revert "Remove superfluous hostName etc. options" This reverts commit 553b55254053f83e51a8861f90d0814a547d9c88. --- modules/os.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/os.nix b/modules/os.nix index d540aac..e97b692 100644 --- a/modules/os.nix +++ b/modules/os.nix @@ -11,6 +11,21 @@ in type = types.path; }; + hostName = mkOption { + type = types.str; + default = null; + }; + + # domain = mkOption { + # type = types.str; + # default = "local"; + # }; + + # searchDomains = mkOption { + # type = types.listOf types.str; + # default = [ cfg.domain ]; + # }; + cert = mkOption { type = types.attrs; default = null; @@ -38,6 +53,13 @@ in users.extraUsers.root.openssh.authorizedKeys.keys = cfg.adminAuthorizedKeys; + networking = { + hostName = cfg.hostName; + # domain = cfg.domain; + # search = cfg.searchDomains; + extraHosts = cfg.extraHosts; + }; + security.pki.certificateFiles = [ pki.ca.cert ]; boot.kernel.sysctl = { "kernel.mm.transparent_hugepage.enabled" = "never";