Revert "Remove superfluous hostName etc. options"
This reverts commit 553b552540.
This commit is contained in:
@@ -11,6 +11,21 @@ in
|
|||||||
type = types.path;
|
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 {
|
cert = mkOption {
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
default = null;
|
default = null;
|
||||||
@@ -38,6 +53,13 @@ in
|
|||||||
users.extraUsers.root.openssh.authorizedKeys.keys =
|
users.extraUsers.root.openssh.authorizedKeys.keys =
|
||||||
cfg.adminAuthorizedKeys;
|
cfg.adminAuthorizedKeys;
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
hostName = cfg.hostName;
|
||||||
|
# domain = cfg.domain;
|
||||||
|
# search = cfg.searchDomains;
|
||||||
|
extraHosts = cfg.extraHosts;
|
||||||
|
};
|
||||||
|
|
||||||
security.pki.certificateFiles = [ pki.ca.cert ];
|
security.pki.certificateFiles = [ pki.ca.cert ];
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"kernel.mm.transparent_hugepage.enabled" = "never";
|
"kernel.mm.transparent_hugepage.enabled" = "never";
|
||||||
|
|||||||
Reference in New Issue
Block a user