mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
removed redundant optional checks
This commit is contained in:
parent
984e4b4564
commit
e78d2abc03
2 changed files with 10 additions and 15 deletions
|
|
@ -43,8 +43,18 @@
|
||||||
device = "/dev/disk/by-uuid/61E7-6E56";
|
device = "/dev/disk/by-uuid/61E7-6E56";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"/var/lib/libvirt/images" = {
|
||||||
|
device = "/home/VMs";
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"d /home/VMs 0755 root root"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
cpu = {
|
cpu = {
|
||||||
intel = {
|
intel = {
|
||||||
|
|
|
||||||
|
|
@ -124,19 +124,4 @@ with lib;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} // attrsets.optionalAttrs (
|
|
||||||
config.virtualisation ? libvirt && config.virtualisation.libvirt.enable ||
|
|
||||||
config.virtualisation.libvirtd.enable)
|
|
||||||
{
|
|
||||||
systemd.tmpfiles.rules = [
|
|
||||||
"d /home/VMs 0755 root root"
|
|
||||||
];
|
|
||||||
|
|
||||||
fileSystems = {
|
|
||||||
"/var/lib/libvirt/images" = {
|
|
||||||
device = "/home/VMs";
|
|
||||||
fstype = "none";
|
|
||||||
options = [ "bind" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue