stuff
This commit is contained in:
parent
72810100dc
commit
5b4a53f099
4 changed files with 35 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
environment.systemPackages = with pkgs; [
|
||||
prismlauncher
|
||||
protonup-qt
|
||||
xivlauncher
|
||||
];
|
||||
}
|
||||
|
||||
|
|
10
users/hu/packages/virt-manager-home.nix
Normal file
10
users/hu/packages/virt-manager-home.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
dconf.settings = {
|
||||
"org/virt-manager/virt-manager/connections" = {
|
||||
autoconnect = ["qemu:///system"];
|
||||
uris = ["qemu:///system"];
|
||||
};
|
||||
};
|
||||
}
|
21
users/hu/packages/virt-manager.nix
Normal file
21
users/hu/packages/virt-manager.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
virtualisation.libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
package = pkgs.qemu_kvm;
|
||||
runAsRoot = true;
|
||||
swtpm.enable = true;
|
||||
ovmf = {
|
||||
enable = true;
|
||||
packages = [(pkgs.OVMF.override {
|
||||
secureBoot = true;
|
||||
tpmSupport = true;
|
||||
}).fd];
|
||||
};
|
||||
};
|
||||
};
|
||||
programs.virt-manager.enable = true;
|
||||
}
|
||||
|
|
@ -8,6 +8,7 @@
|
|||
./persist.nix
|
||||
./packages/nh.nix
|
||||
./packages/zsh/zsh.nix
|
||||
./packages/virt-manager.nix
|
||||
];
|
||||
|
||||
environment.variables = {
|
||||
|
@ -17,7 +18,7 @@
|
|||
|
||||
users.users.hu = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
extraGroups = [ "wheel" "libvirtd" ];
|
||||
shell = pkgs.zsh;
|
||||
hashedPasswordFile = "/nix/config/secrets/hu/pass";
|
||||
};
|
||||
|
@ -41,6 +42,7 @@
|
|||
./packages/fastfetch.nix
|
||||
./packages/nvim/neovim.nix
|
||||
./packages/waybar.nix
|
||||
./packages/virt-manager-home.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue