removed redundant optional checks

This commit is contained in:
Bryan Ramos 2025-02-18 10:16:10 -05:00
parent 984e4b4564
commit e78d2abc03
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
2 changed files with 10 additions and 15 deletions

View file

@ -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 = {

View file

@ -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" ];
};
};
} }