I tested using an older version of the image from 2023-04-23:
root@matrix:~# pct create 130 local:vztmpl/nixos-system-x86_64-linux.tar.xz --hostname test-new --net0 name=eth0,bridge=vmbr0,gw=192.168.1.1,ip=192.168.1.111/24,type=veth --features nesting=1
Formatting '/mnt/pve/nfs/images/130/vm-130-disk-0.raw', fmt=raw size=4294967296 preallocation=off
Creating filesystem with 1048576 4k blocks and 262144 inodes
Filesystem UUID: b249a6b0-b951-40a6-9970-3b0f1f9b40f5
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
extracting archive '/var/lib/vz/template/cache/nixos-system-x86_64-linux.tar.xz'
Total bytes read: 617082880 (589MiB, 58MiB/s)
Detected container architecture: amd64
root@matrix:~# pct start 130
root@matrix:~# pct enter 130
sh-5.2# /bin/sh -l
[root@test-new:~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0@if21: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether bc:24:11:7b:a6:f0 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 192.168.1.111/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::be24:11ff:fe7b:a6f0/64 scope link
valid_lft forever preferred_lft forever
With the latest image from Hydra, I am running into the same issue as you:
root@matrix:~# pct create 130 local:vztmpl/nixos-system-x86_64-linux-1.tar.xz --hostname test-new --net0 name=eth0,bridge=vmbr0,gw=192.168.1.1,ip=192.168.1.111/24,type=veth --features nesting=1
Formatting '/mnt/pve/nfs/images/130/vm-130-disk-0.raw', fmt=raw size=4294967296 preallocation=off
Creating filesystem with 1048576 4k blocks and 262144 inodes
Filesystem UUID: f66b2541-9f3f-4116-b892-f4247474d7dd
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
extracting archive '/var/lib/vz/template/cache/nixos-system-x86_64-linux-1.tar.xz'
Total bytes read: 697835520 (666MiB, 55MiB/s)
Detected container architecture: amd64
unable to open file '/etc/systemd/network/eth0.network.tmp.938012' - No such file or directory
unable to create CT 130 - error in setup task PVE::LXC::Setup::post_create_hook
Looking inside the archives, it looks like the directory /etc/systemd doesn’t exist in the new image. Something must have changed in nixpkgs. I’ll look into it.
EDIT:
Looks like you are using the wrong container image. The correct one is
https://hydra.nixos.org/job/nixos/release-23.11/nixos.proxmoxLXC.x86_64-linux