diff --git a/homes/nathan/home-manager/default.nix b/homes/nathan/home-manager/default.nix index 51882df..ef6aeed 100644 --- a/homes/nathan/home-manager/default.nix +++ b/homes/nathan/home-manager/default.nix @@ -25,6 +25,11 @@ type = with types; bool; default = false; }; + + virtual-machines = mkOption { + type = with types; bool; + default = false; + }; }; @@ -60,6 +65,13 @@ size = 16; }; + dconf.settings = lib.mkIf config.homeconfig.virtual-machines { + "org/virt-manager/virt-manager/connections" = { + autoconnect = ["qemu:///system"]; + uris = ["qemu:///system"]; + }; + }; + gtk = lib.mkIf (config.homeconfig.graphical && config.homeconfig.hyprland.enable) { enable = true; theme.name = "Tokyonight-Dark"; diff --git a/machines/homebox b/machines/homebox index b9d7807..cb79374 160000 --- a/machines/homebox +++ b/machines/homebox @@ -1 +1 @@ -Subproject commit b9d78079d253a68c494a3c3d3ca5f2faf9c8d863 +Subproject commit cb79374140c535d54d7e41b4ff687861fd89d035 diff --git a/system/users/nathan/default.nix b/system/users/nathan/default.nix index f7da87e..fb43edd 100644 --- a/system/users/nathan/default.nix +++ b/system/users/nathan/default.nix @@ -11,7 +11,7 @@ name = lib.mkDefault "nathan"; isNormalUser = lib.mkDefault true; #hashedPasswordFile = lib.mkIf (cfg.hashedPasswordFile != null) cfg.hashedPasswordFile; - extraGroups = [ "networkmanager" "docker" ]; + extraGroups = [ "networkmanager" "docker" "libvirtd" ]; openssh.authorizedKeys.keys = with config.sysconfig.users.nathan; lib.mkIf config.sysconfig.services.openssh.enable ( ssh.keys ++ (map (z: config.sysconfig.sshHostKeys.${z}) ssh.hosts) );