porcorosso: add libvirt persistance
This commit is contained in:
parent
86a09dab73
commit
db911ee156
1 changed files with 12 additions and 0 deletions
|
@ -33,6 +33,9 @@ in {
|
||||||
];
|
];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.supportedFilesystems = [ "ntfs" ];
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
|
boot.kernel.sysctl = {
|
||||||
|
"abi.vsyscall32" = "0";
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems = let
|
fileSystems = let
|
||||||
zfs = device: {
|
zfs = device: {
|
||||||
|
@ -191,7 +194,16 @@ in {
|
||||||
};
|
};
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
#"L /etc/nixos - - - - /persist/etc/nixos"
|
#"L /etc/nixos - - - - /persist/etc/nixos"
|
||||||
|
"d /var/lib/libvirt 0755 root - - -"
|
||||||
];
|
];
|
||||||
|
systemd.mounts = [{
|
||||||
|
bindsTo = ["libvirtd.service"];
|
||||||
|
partOf = ["libvirtd.service"];
|
||||||
|
unitConfig.RequiresMountsFor = "/var/lib/libvirt";
|
||||||
|
options = "bind";
|
||||||
|
what = "/persist/var/lib/libvirt";
|
||||||
|
where = "/var/lib/libvirt";
|
||||||
|
}];
|
||||||
|
|
||||||
# Enable Thunderbolt device management.
|
# Enable Thunderbolt device management.
|
||||||
services.hardware.bolt.enable = true;
|
services.hardware.bolt.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue