From 642d96f0fe190169c0eb22bdcaf86a4e660f7e48 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Sat, 22 Jun 2024 02:41:50 -0300 Subject: [PATCH] refactor(users/gabriel): better groups --- hosts/common/users/gabriel/default.nix | 34 ++++++++++++-------------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/hosts/common/users/gabriel/default.nix b/hosts/common/users/gabriel/default.nix index 6a3dad9c..8866ccf4 100644 --- a/hosts/common/users/gabriel/default.nix +++ b/hosts/common/users/gabriel/default.nix @@ -10,24 +10,22 @@ in { users.users.gabriel = { isNormalUser = true; shell = pkgs.fish; - extraGroups = - [ - "wheel" - "video" - "audio" - ] - ++ ifTheyExist [ - "minecraft" - "network" - "wireshark" - "i2c" - "mysql" - "docker" - "podman" - "git" - "libvirtd" - "deluge" - ]; + extraGroups = ifTheyExist [ + "audio" + "deluge" + "docker" + "git" + "i2c" + "libvirtd" + "lxd" + "minecraft" + "mysql" + "network" + "podman" + "video" + "wheel" + "wireshark" + ]; openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.readFile ../../../../home/gabriel/ssh.pub); hashedPasswordFile = config.sops.secrets.gabriel-password.path;