From da64f0cc9a849c52f47453114e1aae29c8ffcdc1 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sat, 24 Feb 2024 12:58:54 +0100 Subject: [PATCH] Adding virt manager. --- home-manager/home.nix | 8 ++++++++ nixos/configuration.nix | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/home-manager/home.nix b/home-manager/home.nix index df79fb8..b2b4889 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -95,4 +95,12 @@ # Let Home Manager install and manage itself. programs.home-manager.enable = true; + + # Home manager settings + dconf.settings = { + "org/virt-manager/virt-manager/connections" = { + autoconnect = ["qemu:///system"]; + uris = ["qemu:///system"]; + }; + }; } diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 0eb8672..d118a0c 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -190,7 +190,7 @@ users.users.crony = { isNormalUser = true; description = "Crony"; - extraGroups = [ "networkmanager" "wheel" "video" "input" "audio" ]; + extraGroups = [ "networkmanager" "wheel" "video" "input" "audio" "libvirtd" ]; shell = pkgs.zsh; }; @@ -239,6 +239,10 @@ value = "1048576"; }]; + # Enable virt manager + virtualisation.libvirtd.enable = true; + programs.virt-manager.enable = true; + # DO NOT CHANGE system.stateVersion = "23.11";