add virt-manager and libvirtd

This commit is contained in:
uku 2023-11-15 01:00:35 +01:00
parent a0fa18e84c
commit 740bf8681c
Signed by: uku
GPG key ID: 7D01D7B105E77166
2 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,5 @@
{
lib,
pkgs,
nixpkgs,
...
@ -55,5 +56,5 @@
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
system.stateVersion = lib.mkDefault "23.11"; # Did you read the comment?
}

View file

@ -170,8 +170,12 @@ in {
enable = true;
plugins = with pkgs.xfce; [thunar-volman thunar-archive-plugin];
};
virt-manager.enable = true;
};
virtualisation.libvirtd.enable = true;
security.pam.services.greetd.enableGnomeKeyring = true;
# Define a user account. Don't forget to set a password with passwd.
@ -179,7 +183,7 @@ in {
${username} = {
isNormalUser = true;
shell = pkgs.fish;
extraGroups = ["networkmanager" "wheel" "video"];
extraGroups = ["networkmanager" "wheel" "video" "libvirtd"];
hashedPasswordFile = config.age.secrets.userPassword.path;
};