The other part of dotfiles
This commit is contained in:
parent
2fbfed0e7a
commit
9f1ba4a64b
25 changed files with 1089 additions and 0 deletions
16
modules/virtualisation/libvirtd.nix
Normal file
16
modules/virtualisation/libvirtd.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.libvirtd;
|
||||
in
|
||||
{
|
||||
options.libvirtd = {
|
||||
enable = lib.mkEnableOption "Enable libvirtd module";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.virt-manager.enable = true;
|
||||
users.users.${config.mainUser.userName}.extraGroups = [ "libvirtd" ];
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue