--- 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 +++
--- 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
--- 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
--- 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 +++
--- 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
--- 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 --
--- 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 -
--- 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