[PATCH container 1/1] Setup: Allow hostname configuration on NixOS

Harikrishnan R rharikrishnan95 at gmail.com
Mon Apr 11 15:22:19 CEST 2022


Can someone please take a look at this patch? It's a minor change that will
allow proxmox to set hostname on NixOS LXCs.

On Fri, 18 Mar 2022 at 15:51, Harikrishnan R <rharikrishnan95 at gmail.com>
wrote:

> While NixOS generally overrides any static contents in /etc/hostname
> with the hostname defined in `networking.hostname`, it can use the
> contents of `/etc/hostname` provided by PVE if this option is not set.
>
> Signed-off-by: Harikrishnan R <rharikrishnan95 at gmail.com>
> ---
>  src/PVE/LXC/Setup/NixOS.pm | 4 ----
>  1 file changed, 4 deletions(-)
>
> diff --git a/src/PVE/LXC/Setup/NixOS.pm b/src/PVE/LXC/Setup/NixOS.pm
> index 905ca8c..845d2d5 100644
> --- a/src/PVE/LXC/Setup/NixOS.pm
> +++ b/src/PVE/LXC/Setup/NixOS.pm
> @@ -29,10 +29,6 @@ sub setup_network {
>      $self->setup_systemd_networkd($conf);
>  }
>
> -sub set_hostname {
> -    my ($self, $conf) = @_;
> -}
> -
>  sub set_timezone {
>      my ($self, $conf) = @_;
>  }
> --
> 2.35.1
>
>



More information about the pve-devel mailing list