commit fffc089f7d74a3618564d8a4e3bea88cbae2e77b
parent b5710055afe2647b1c67bfd5a741071d649c45c5
Author: Katja (zaphyra) <git@ctu.cx>
Date: Sun, 25 May 2025 23:07:37 +0200
parent b5710055afe2647b1c67bfd5a741071d649c45c5
Author: Katja (zaphyra) <git@ctu.cx>
Date: Sun, 25 May 2025 23:07:37 +0200
config/nixos/modules/users/katja: add user to `networkmanager` group if networkmanager is enabled
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/config/nixos/modules/users/katja.nix b/config/nixos/modules/users/katja.nix @@ -30,10 +30,14 @@ in description = "Katja"; hashedPasswordFile = config.sops.secrets.katjaPassword.path; isNormalUser = true; - extraGroups = [ - "ssh" - "wheel" - ]; + extraGroups = + [ + "ssh" + "wheel" + ] + ++ lib.optionals config.networking.networkmanager.enable [ + "networkmanager" + ]; openssh.authorizedKeys.keys = [ (builtins.readFile "${pkgs.ctucx-website}/ssh_pubkey.asc") ];