xps16/machines/arch: init

This commit is contained in:
2025-04-22 20:06:50 +02:00
parent a99a522f41
commit f55dbaf984
3 changed files with 34 additions and 0 deletions

View File

@@ -13,6 +13,8 @@
./services/thermald.nix
./services/tlp.nix
./machines
./testconfig.nix
];

View File

@@ -0,0 +1,25 @@
{ ... }:
{
systemd.nspawn."arch" = {
enable = true;
execConfig.Boot = true;
filesConfig = {
BindReadOnly = [
"/nix/store"
# "/etc/resolv.conf:/etc/resolv.conf"
];
Bind = [
"/home/h7x4/git"
"/home/h7x4/Downloads"
];
};
networkConfig.Private = false;
};
systemd.services."systemd-nspawn@arch" = {
enable = true;
requiredBy = [ "machines.target" ];
overrideStrategy = "asDropin";
};
}

View File

@@ -0,0 +1,7 @@
{
imports = [
./arch.nix
];
systemd.targets.machines.enable = true;
}