[pve-devel] [PATCH container 0/1] setup: add NixOS support

2022-02-13 Thread Harikrishnan R via pve-devel
--- Begin Message --- Support IP, DNS and SSH key setup for NixOS containers Harikrishnan R (1): Setup: add NixOS support src/PVE/LXC/Config.pm | 2 +- src/PVE/LXC/Setup.pm | 4 src/PVE/LXC/Setup/Makefile | 1 + src/PVE/LXC/Setup/NixOS.pm | 44 +++

[pve-devel] [PATCH container 1/1] Setup: add NixOS support

2022-02-13 Thread Harikrishnan R via pve-devel
--- Begin Message --- Distro detection is done through the presence of a /nix folder. NixOS typically uses a script-based network configuration system that isn't easy to configure from the outside. LXC templates generated for proxmox are instead expected to use systemd-networkd. --- src/PVE/LXC/Co

Re: [pve-devel] [PATCH container 1/1] Setup: add NixOS support

2022-02-14 Thread Harikrishnan R via pve-devel
--- Begin Message --- > /etc/os-release file NixOS does not guarantee the presence of this file. It is absent by default in LXC images. > "nix" is a valid word in some languages We could check for "/nix/store" instead. I'll change it to this in the updated patch. > networking itself doesn't seem

[pve-devel] [PATCH v2 container 0/1] Setup: add NixOS support

2022-02-15 Thread Harikrishnan R via pve-devel
--- Begin Message --- Support IP, DNS and SSH key setup for NixOS containers Harikrishnan R (1): Setup: add NixOS support src/PVE/LXC/Config.pm | 2 +- src/PVE/LXC/Setup.pm | 4 src/PVE/LXC/Setup/Makefile | 1 + src/PVE/LXC/Setup/NixOS.pm | 44 +++

[pve-devel] [PATCH v2 container 1/1] Setup: add NixOS support

2022-02-15 Thread Harikrishnan R via pve-devel
--- Begin Message --- Distro detection is done through the presence of a /nix folder. NixOS typically uses a script-based network configuration system that isn't easy to configure from the outside. LXC templates generated for proxmox are instead expected to use systemd-networkd. Signed-off-by: Har

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

2022-03-18 Thread Harikrishnan R via pve-devel
--- Begin Message --- 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 --- src/PVE/LXC/Setup/NixOS.pm | 4 --

[pve-devel] [PATCH container 0/1] Setup: Allow hostname configuration on NixOS

2022-03-18 Thread Harikrishnan R via pve-devel
--- Begin Message --- Hostname can be set through /etc/hostname on NixOS with minor changes to the default NixOS network options. Harikrishnan R (1): Setup: Allow hostname configuration on NixOS src/PVE/LXC/Setup/NixOS.pm | 4 1 file changed, 4 deletions(-) -- 2.35.1 --- End Message -

Re: [pve-devel] [PATCH container 1/1] Setup: Allow hostname configuration on NixOS

2022-04-11 Thread Harikrishnan R via pve-devel
--- Begin Message --- 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 wrote: > While NixOS generally overrides any static contents in /etc/hostname > with the hostname defined in