Merge pull request #164698 from illustris/proxmox-lxc

main
Sandro 2 years ago committed by GitHub
commit 398cf5bf2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      nixos/modules/virtualisation/proxmox-lxc.nix

@ -20,6 +20,15 @@ with lib;
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 =
@ -50,6 +59,8 @@ with lib;
useDHCP = false;
useHostResolvConf = false;
useNetworkd = true;
# pick up hostname from /etc/hostname generated by proxmox
hostName = mkIf (!cfg.manageHostName) (mkForce "");
};
services.openssh = {

Loading…
Cancel
Save