From 59494644db745fcd197c30770742aee280a04f23 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Mon, 22 Apr 2024 22:30:46 +0800 Subject: [PATCH] nixos/core: cleanup unused groups --- nixos/profiles/common/core/default.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/nixos/profiles/common/core/default.nix b/nixos/profiles/common/core/default.nix index f36a4d7..261c787 100644 --- a/nixos/profiles/common/core/default.nix +++ b/nixos/profiles/common/core/default.nix @@ -79,16 +79,12 @@ users.users."guanranwang" = { isNormalUser = true; description = "Guanran Wang"; - extraGroups = [ - "wheel" # administrator - "networkmanager" # access to networkmanager - "tss" # access to tpm devices - "vboxusers" # access to virtualbox - "nix-access-tokens" # access to github tokens - "libvirtd" # access to virt-manager - ]; hashedPasswordFile = config.sops.secrets."hashed-passwd".path; shell = pkgs.fish; + extraGroups = [ + "wheel" + "nix-access-tokens" + ]; openssh.authorizedKeys.keys = [ # same as git signing "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMmd/uqiBahzKcKMJ+gT3dkUIdrWQgudspsDchDlx1E/ guanran928@outlook.com"