From 8f62706b08b1b7df08af9ae147ee89afd947c283 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 27 Oct 2020 14:57:07 +0800 Subject: [PATCH] nixbld: update users --- nixbld-etc-nixos/configuration.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 0b50d2aa..a641cf6e 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -231,24 +231,26 @@ in hardware.sane.enable = true; hardware.sane.extraBackends = [ pkgs.hplipWithPlugin ]; - users.extraGroups.plugdev = { }; + users.extraGroups.hkadmin = { }; users.extraUsers.sb = { isNormalUser = true; - extraGroups = ["wheel" "plugdev" "dialout" "lp" "scanner"]; - shell = pkgs.fish; + extraGroups = ["wheel" "hkadmin" "lp" "scanner"]; openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyPk5WyFoWSvF4ozehxcVBoZ+UHgrI7VW/OoQfFFwIQe0qvetUZBMZwR2FwkLPAMZV8zz1v4EfncudEkVghy4P+/YVLlDjqDq9zwZnh8Nd/ifu84wmcNWHT2UcqnhjniCdshL8a44memzABnxfLLv+sXhP2x32cJAamo5y6fukr2qLp2jbXzR+3sv3klE0ruUXis/BR1lLqNJEYP8jB6fLn2sLKinnZPfn6DwVOk10mGeQsdME/eGl3phpjhODH9JW5V2V5nJBbC0rBnq+78dyArKVqjPSmIcSy72DEIpTctnMEN1W34BGrnsDd5Xd/DKxKxHKTMCHtZRwLC2X0NWN" "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCMALVC8RDTHec+PC8y1s3tcpUAODgq6DEzQdHDf/cyvDMfmCaPiMxfIdmkns5lMa03hymIfSmLUF0jFFDc7biRp7uf9AAXNsrTmplHii0l0McuOOZGlSdZM4eL817P7UwJqFMxJyFXDjkubhQiX6kp25Kfuj/zLnupRCaiDvE7ho/xay6Jrv0XLz935TPDwkc7W1asLIvsZLheB+sRz9SMOb9gtrvk5WXZl5JTOFOLu+JaRwQLHL/xdcHJTOod7tqHYfpoC5JHrEwKzbhTOwxZBQBfTQjQktKENQtBxXHTe71rUEWfEZQGg60/BC4BrRmh4qJjlJu3v4VIhC7SSHn1" ]; + shell = pkgs.fish; }; users.extraUsers.rj = { isNormalUser = true; - extraGroups = ["wheel" "plugdev" "dialout"]; + extraGroups = ["wheel"]; }; - users.extraUsers.astro = { + users.extraUsers.harry = { isNormalUser = true; - extraGroups = ["plugdev" "dialout"]; - shell = pkgs.bashInteractive; + extraGroups = ["hkadmin" "lp" "scanner"]; + openssh.authorizedKeys.keys = [ + "ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBDcPNCgtdz8erFPRrAwCr4JrkeYXJUUvoRBgP0X2HlzJgDe1Inuo6sC6CGcO3IXbf4MwVA9XEp8BYPHARVeEHhufg/0wnIABLx2GcK99yxOLDUe4h/3YwtqvOcqHEsDx7w==" + ]; }; users.extraUsers.nix = { isNormalUser = true;