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;
|
inherit (users.primary) hashedPassword;
|
||||||
description = users.primary.realName;
|
description = users.primary.realName;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "docker" "networkmanager" "tss" "wheel" ];
|
extraGroups = [ "docker" "libvirtd" "networkmanager" "tss" "wheel" ];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
users.primary.sshPublicKey
|
users.primary.sshPublicKey
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./starship.nix
|
./starship.nix
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
|
./virt-manager.nix
|
||||||
./yt-dlp.nix
|
./yt-dlp.nix
|
||||||
./zsh.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"
|
"size 60% 60%,class:lutris"
|
||||||
|
|
||||||
"dimaround,class:^(gcr-prompter)$"
|
"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 = [
|
exec-once = [
|
||||||
|
|
|
@ -12,6 +12,7 @@ _: {
|
||||||
"/var/lib/docker"
|
"/var/lib/docker"
|
||||||
"/var/lib/fwupd"
|
"/var/lib/fwupd"
|
||||||
"/var/lib/iwd"
|
"/var/lib/iwd"
|
||||||
|
"/var/lib/libvirt"
|
||||||
"/var/lib/machines"
|
"/var/lib/machines"
|
||||||
"/var/lib/NetworkManager"
|
"/var/lib/NetworkManager"
|
||||||
"/var/lib/nixos"
|
"/var/lib/nixos"
|
||||||
|
|
|
@ -5,5 +5,16 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
storageDriver = "btrfs";
|
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