From 8e4da9d06dc6441fb5b9eca01694d719dd663b99 Mon Sep 17 00:00:00 2001 From: Gabriella Bere Date: Sun, 8 Jun 2025 15:03:20 +0100 Subject: [PATCH] added virtualisation with qemu and virt-manager also moved virt-manager from home-manager to modules/virtualisation.nix because it doesnt work without qemu so may as well added user blue to group libvirtd --- flake.nix | 1 + home-manager/packages.nix | 1 - hosts/gabbielaptop/configuration.nix | 1 + modules/aagl.nix | 2 +- modules/packages.nix | 1 - modules/virtualisation.nix | 6 ++++++ 6 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 modules/virtualisation.nix diff --git a/flake.nix b/flake.nix index ba998fb..a2e62a7 100644 --- a/flake.nix +++ b/flake.nix @@ -119,6 +119,7 @@ ./modules/waydroid.nix ./modules/packages.nix ./modules/aagl.nix + ./modules/virtualisation.nix inputs.aagl.nixosModules.default inputs.lanzaboote.nixosModules.lanzaboote inputs.musnix.nixosModules.musnix diff --git a/home-manager/packages.nix b/home-manager/packages.nix index 5ebe093..0f62b3f 100644 --- a/home-manager/packages.nix +++ b/home-manager/packages.nix @@ -15,7 +15,6 @@ telegram-desktop # Telegram messenger client pavucontrol # Useful audio control GUI stable.prismlauncher # Minecraft launcher - virt-manager # QEMU manager bat # cat but with syntax highlighting bc # terminal calculator wget # download files diff --git a/hosts/gabbielaptop/configuration.nix b/hosts/gabbielaptop/configuration.nix index 3d8dd24..fd75b23 100644 --- a/hosts/gabbielaptop/configuration.nix +++ b/hosts/gabbielaptop/configuration.nix @@ -132,6 +132,7 @@ "wheel" "dialout" "audio" + "libvirtd" ]; shell = pkgs.fish; }; diff --git a/modules/aagl.nix b/modules/aagl.nix index 2f332c1..16990b3 100644 --- a/modules/aagl.nix +++ b/modules/aagl.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ ... }: { programs.honkers-railway-launcher.enable = true; } diff --git a/modules/packages.nix b/modules/packages.nix index 80f794f..e9e1a0c 100644 --- a/modules/packages.nix +++ b/modules/packages.nix @@ -15,6 +15,5 @@ pciutils dmidecode nixd - qemu ]; } diff --git a/modules/virtualisation.nix b/modules/virtualisation.nix new file mode 100644 index 0000000..4bbef72 --- /dev/null +++ b/modules/virtualisation.nix @@ -0,0 +1,6 @@ +{...}:{ + virtualisation.libvirtd = { + enable = true; + }; + programs.virt-manager.enable = true; +}