stuff
This commit is contained in:
parent
c59da0e4ba
commit
0a45d838ff
10 changed files with 246 additions and 52 deletions
|
|
@ -2,10 +2,16 @@
|
|||
config,
|
||||
pkgs,
|
||||
user,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
boot.kernelModules = ["kvm-amd"];
|
||||
environment.systemPackages = with pkgs; [virt-manager];
|
||||
virtualisation.libvirtd.enable = true;
|
||||
users.extraGroups.libvirtd.members = ["${user}"];
|
||||
options = {
|
||||
libvirt.enable = lib.mkEnableOption "Enables Libvirt";
|
||||
};
|
||||
config = lib.mkIf config.libvirt.enable {
|
||||
boot.kernelModules = ["kvm-amd"];
|
||||
environment.systemPackages = with pkgs; [virt-manager];
|
||||
virtualisation.libvirtd.enable = true;
|
||||
users.extraGroups.libvirtd.members = ["${user}"];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue