enable virt-manager

This commit is contained in:
Adithya 2024-03-23 15:53:21 +05:30
parent 9fb1f98600
commit 7a417e7260
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
6 changed files with 36 additions and 1 deletions

View file

@ -16,7 +16,7 @@ in
inherit (users.primary) hashedPassword;
description = users.primary.realName;
isNormalUser = true;
extraGroups = [ "docker" "networkmanager" "tss" "wheel" ];
extraGroups = [ "docker" "libvirtd" "networkmanager" "tss" "wheel" ];
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [
users.primary.sshPublicKey

View file

@ -15,6 +15,7 @@
./ssh.nix
./starship.nix
./tmux.nix
./virt-manager.nix
./yt-dlp.nix
./zsh.nix
];

View file

@ -0,0 +1,18 @@
{ pkgs, ... }: {
home.packages = [ pkgs.virt-manager ];
dconf.settings = {
"org/virt-manager/virt-manager/confirm" = {
forcepoweroff = false;
};
"org/virt-manager/virt-manager/connections" = {
autoconnect = [ "qemu:///system" ];
uris = [ "qemu:///system" ];
};
"org/virt-manager/virt-manager/new-vm" = { firmware = "uefi"; };
"org/virt-manager/virt-manager/stats" = {
enable-disk-poll = true;
enable-net-poll = true;
};
"org/virt-manager/virt-manager/vmlist-fields" = { network-traffic = true; };
};
}

View file

@ -130,6 +130,10 @@ in
"size 60% 60%,class:lutris"
"dimaround,class:^(gcr-prompter)$"
"float,class:^(virt-manager)$"
"size 25% 50%,class:^(virt-manager)$,title:^(Virtual Machine Manager)$"
"move 5%% 10%,class:^(virt-manager)$,title:^(Virtual Machine Manager)$"
];
exec-once = [

View file

@ -12,6 +12,7 @@ _: {
"/var/lib/docker"
"/var/lib/fwupd"
"/var/lib/iwd"
"/var/lib/libvirt"
"/var/lib/machines"
"/var/lib/NetworkManager"
"/var/lib/nixos"

View file

@ -5,5 +5,16 @@
enable = true;
storageDriver = "btrfs";
};
kvmgt.enable = true;
libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
ovmf = {
enable = true;
packages = [ pkgs.OVMFFull.fd ];
};
};
};
};
}