enable virt-manager
This commit is contained in:
parent
9fb1f98600
commit
7a417e7260
6 changed files with 36 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
./ssh.nix
|
||||
./starship.nix
|
||||
./tmux.nix
|
||||
./virt-manager.nix
|
||||
./yt-dlp.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
|
18
home/programs/virt-manager.nix
Normal file
18
home/programs/virt-manager.nix
Normal 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; };
|
||||
};
|
||||
}
|
|
@ -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 = [
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue