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

@@ -155,6 +155,7 @@
./modules/virt-manager.nix
./modules/vmware-host.nix
./modules/ssh.nix
./modules/wireshark.nix
#./modules/static-ip.nix
#./modules/no-sleep-lid-closed.nix
#./modules/wake-on-lan.nix

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" ];
}

View File

@@ -17,7 +17,7 @@
isNormalUser = true;
description = config.mainUser.name;
shell = pkgs.zsh;
extraGroups = [ "networkmanager" "wheel" "docker" "libvirtd" ];
extraGroups = [ "networkmanager" "wheel" "docker" ];
packages = with pkgs; [
(discord.override { withVencord = true; })
librewolf