From 9e0c352e0a62df6efc41c9f238008ac1c0a1f12b Mon Sep 17 00:00:00 2001 From: Alexander Wainwright Date: Tue, 24 Feb 2026 12:30:24 +1000 Subject: [PATCH] Add groups --- hosts/modules/base.nix | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/hosts/modules/base.nix b/hosts/modules/base.nix index 085224b..2eab27a 100644 --- a/hosts/modules/base.nix +++ b/hosts/modules/base.nix @@ -1,15 +1,28 @@ { config, pkgs, inputs, ... }: { # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.alex = { - isNormalUser = true; - description = "Alexander Wainwright"; - extraGroups = [ "networkmanager" "wheel" "dialout" ]; - packages = with pkgs; [ - # thunderbird - ]; - shell = pkgs.fish; - }; + users = { + users.alex = { + isNormalUser = true; + description = "Alexander Wainwright"; + extraGroups = [ + "dialout" + "input" + "networkmanager" + "plugdev" + "render" + "video" + "wheel" + ]; + packages = with pkgs; [ + # thunderbird + ]; + shell = pkgs.fish; + }; + groups.pluggdev = {}; + }; + + services.udev.packages = [ pkgs.rtl-sdr ]; # this is to avoid some problem that happens apparently only when fish is # enabled, where generating man cahes takes a very long time. note that it may