From 6abdf1d694334dc558b28b7ea109f2782aec0603 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Tue, 11 Jun 2024 18:30:55 -0400 Subject: [PATCH] 170 current 2024-06-11 18:30:41 24.11.20240529.ad57eef 6.9.2-zen1 * --- boxes/desktop/configuration.nix | 6 +++++- common/programs/virt.nix | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 common/programs/virt.nix diff --git a/boxes/desktop/configuration.nix b/boxes/desktop/configuration.nix index 66e421e..4d828e0 100644 --- a/boxes/desktop/configuration.nix +++ b/boxes/desktop/configuration.nix @@ -4,6 +4,9 @@ { config, lib, pkgs, inputs, ... }: +let +_v = import ../../common/programs/virt.nix {}; +in { imports = [ @@ -69,6 +72,8 @@ enable = true; }; }; + services.printing.enable = true; + virtualisation = _v; # Enable the X11 windowing system. # servives.desktopManager.plasma6.enable = true; # services.desktopManager.plasma6.enable = true; @@ -80,7 +85,6 @@ # services.xserver.xkb.options = "eurosign:e,caps:escape"; # Enable CUPS to print documents. - services.printing.enable = true; nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Enable sound. sound.enable = true; diff --git a/common/programs/virt.nix b/common/programs/virt.nix new file mode 100644 index 0000000..3f3afab --- /dev/null +++ b/common/programs/virt.nix @@ -0,0 +1,3 @@ +{} : { + libvirtd.enable = true; +}