Merge pull request #164698 from illustris/proxmox-lxc
This commit is contained in:
commit
398cf5bf2d
|
@ -20,6 +20,15 @@ with lib;
|
||||||
configuration from proxmox.
|
configuration from proxmox.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
manageHostName = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Whether to manage hostname through nix options
|
||||||
|
When false, the hostname is picked up from /etc/hostname
|
||||||
|
populated by proxmox.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config =
|
||||||
|
@ -50,6 +59,8 @@ with lib;
|
||||||
useDHCP = false;
|
useDHCP = false;
|
||||||
useHostResolvConf = false;
|
useHostResolvConf = false;
|
||||||
useNetworkd = true;
|
useNetworkd = true;
|
||||||
|
# pick up hostname from /etc/hostname generated by proxmox
|
||||||
|
hostName = mkIf (!cfg.manageHostName) (mkForce "");
|
||||||
};
|
};
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
|
|
Loading…
Reference in a new issue