From 1e9f6c445c7a2a4c435a86eca52851753e101c4e Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Fri, 30 Aug 2024 22:46:55 +0000 Subject: [PATCH] frontend: add user groups required for cups, gamemode, sane --- nix/nixos-modules/frontend/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/nixos-modules/frontend/default.nix b/nix/nixos-modules/frontend/default.nix index 08cd7a0..88f24ef 100644 --- a/nix/nixos-modules/frontend/default.nix +++ b/nix/nixos-modules/frontend/default.nix @@ -465,7 +465,11 @@ in extraGroups = with lib.lists; flatten [ + # TODO make user groups an assertion + (optional config.programs.gamemode.enable "gamemode") + (optional config.services.printing.enable "lpadmin") (optional config.networking.networkmanager.enable "networkmanger") + (optional config.hardware.sane.enable "scanner") "wheel" ]; isNormalUser = true;