set groups in the module files

This commit is contained in:
Kopatz
2023-12-12 16:12:15 +01:00
parent bbba50668a
commit afc25be633
4 changed files with 6 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
{
programs.dconf.enable = true; # virt-manager requires dconf to remember settings
environment.systemPackages = with pkgs; [ virt-manager virtiofsd ];
@@ -16,4 +16,5 @@
spiceUSBRedirection.enable = true;
};
services.spice-vdagentd.enable = true;
users.users.${config.mainUser.name}.extraGroups = [ "libvirtd" ];
}

View File

@@ -2,4 +2,6 @@
{
programs.wireshark.enable = true;
programs.wireshark.package = pkgs.wireshark;
users.users.${config.mainUser.name}.extraGroups = [ "wireshark" ];
}