diff --git a/modules/common-desktop/monitor.nix b/modules/common-desktop/monitor.nix index d7a562a..603eca6 100644 --- a/modules/common-desktop/monitor.nix +++ b/modules/common-desktop/monitor.nix @@ -6,18 +6,20 @@ setvcp = "${lib.meta.getExe pkgs.ddcutil} setvcp D6"; in { hardware.i2c.enable = true; - systemd.services.monitor-off = rec { - script = "${setvcp} 05"; - wantedBy = ["sleep.target" "final.target"]; - before = wantedBy; + systemd.services = { + monitor-off = rec { + script = "${setvcp} 05"; + wantedBy = ["sleep.target" "final.target"]; + before = wantedBy; - serviceConfig.Type = "oneshot"; - unitConfig.DefaultDependencies = false; - }; + serviceConfig.Type = "oneshot"; + unitConfig.DefaultDependencies = false; + }; - systemd.services.monitor-on = rec { - script = "${setvcp} 01"; - wantedBy = ["sleep.target" "multi-user.target"]; - after = wantedBy; + monitor-on = rec { + script = "${setvcp} 01"; + wantedBy = ["sleep.target" "multi-user.target"]; + after = wantedBy; + }; }; } diff --git a/modules/common-desktop/virtualization.nix b/modules/common-desktop/virtualization.nix index 73c9a2a..d1b12ae 100644 --- a/modules/common-desktop/virtualization.nix +++ b/modules/common-desktop/virtualization.nix @@ -1,5 +1,8 @@ {pkgs, ...}: { - virtualisation.libvirtd.enable = true; + virtualisation = { + libvirtd.enable = true; + spiceUSBRedirection.enable = true; + }; programs.virt-manager.enable = true; environment.systemPackages = [pkgs.quickemu]; }