]> git.proxmox.com Git - pve-container.git/commit - src/PVE/LXC/Config.pm
Setup: add NixOS support
authorHarikrishnan R via pve-devel <pve-devel@lists.proxmox.com>
Tue, 15 Feb 2022 17:28:46 +0000 (22:58 +0530)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Feb 2022 07:05:12 +0000 (08:05 +0100)
commit6226d0101652914744cb5c657414bf286ccd857d
treea83344605c6b717550f3ef0888544398a3bec194
parent0f9ca81afa23ce02d88b8b6ab348e56804d4acfc
Setup: add NixOS support

Distro detection is done heuristically through the presence of a
`/nix/store` folder.

NixOS typically uses a script-based network configuration system that
isn't easy to configure from the outside, while the configuration
snippets would be simple to generate, bringing them in effect isn't.

LXC templates generated for proxmox are instead expected to use
systemd-networkd.

Signed-off-by: Harikrishnan R <rharikrishnan95@gmail.com>
 [ Thomas: update/reword commit ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Config.pm
src/PVE/LXC/Setup.pm
src/PVE/LXC/Setup/Makefile
src/PVE/LXC/Setup/NixOS.pm [new file with mode: 0644]