Add virtualisation module
This commit is contained in:
parent
1e5c09b1e8
commit
49392c53a6
3 changed files with 16 additions and 1 deletions
|
@ -32,6 +32,7 @@
|
|||
../../modules/typesetting.nix
|
||||
../../modules/docker.nix
|
||||
../../modules/distrobox.nix
|
||||
../../modules/virtualization.nix
|
||||
../../modules/gui-coding.nix
|
||||
../../modules/optical-media.nix
|
||||
../../modules/flatpak.nix
|
||||
|
|
14
modules/virtualization.nix
Normal file
14
modules/virtualization.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
];
|
||||
|
||||
virtualisation = {
|
||||
libvirtd.enable = true;
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
}
|
|
@ -6,7 +6,7 @@
|
|||
}: {
|
||||
users.users.julius = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "networkmanager" "docker"];
|
||||
extraGroups = [ "wheel" "networkmanager" "docker" "libvirtd" ];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue