From e78d2abc03e507c6940ffcbbb68b28eee84e4534 Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Tue, 18 Feb 2025 10:16:10 -0500 Subject: [PATCH] removed redundant optional checks --- src/system/machines/workstation/hardware.nix | 10 ++++++++++ src/system/machines/workstation/system.nix | 15 --------------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/src/system/machines/workstation/hardware.nix b/src/system/machines/workstation/hardware.nix index e4df2d9..3aa2414 100644 --- a/src/system/machines/workstation/hardware.nix +++ b/src/system/machines/workstation/hardware.nix @@ -43,8 +43,18 @@ device = "/dev/disk/by-uuid/61E7-6E56"; fsType = "vfat"; }; + + "/var/lib/libvirt/images" = { + device = "/home/VMs"; + options = [ "bind" ]; + }; }; + systemd.tmpfiles.rules = [ + "d /home/VMs 0755 root root" + ]; + + hardware = { cpu = { intel = { diff --git a/src/system/machines/workstation/system.nix b/src/system/machines/workstation/system.nix index 0120f22..847545e 100644 --- a/src/system/machines/workstation/system.nix +++ b/src/system/machines/workstation/system.nix @@ -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" ]; - }; - }; }