xps16/machines/arch: init
This commit is contained in:
@@ -13,6 +13,8 @@
|
|||||||
./services/thermald.nix
|
./services/thermald.nix
|
||||||
./services/tlp.nix
|
./services/tlp.nix
|
||||||
|
|
||||||
|
./machines
|
||||||
|
|
||||||
./testconfig.nix
|
./testconfig.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
25
hosts/xps16/machines/arch.nix
Normal file
25
hosts/xps16/machines/arch.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
||||||
7
hosts/xps16/machines/default.nix
Normal file
7
hosts/xps16/machines/default.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./arch.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
systemd.targets.machines.enable = true;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user