Let's throw in a container with arch

This commit is contained in:
Benson Chu 2025-01-18 12:56:43 -06:00
parent ef2d21b5b3
commit 038ddb90a1

View file

@ -159,6 +159,30 @@
"10.254.0.1" = ["test.pestctrl.io"];
};
systemd = {
targets.machines.enable = true;
nspawn."arch" = {
enable = true;
execConfig = {Boot = true;};
filesConfig = {
# Bind resolve.conf to get networking
BindReadOnly = ["/etc/resolv.conf:/etc/resolv.conf"];
# Bind any directories that you want to be shared
# Bind = ["/home/benson/"];
# BindUser = ["benson"];
};
networkConfig = {Private = false;};
};
services."systemd-nspawn@arch" = {
enable = true;
requiredBy = ["machines.target"];
overrideStrategy = "asDropin";
};
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave