diff --git a/hosts/common/users/sam/default.nix b/hosts/common/users/sam/default.nix index d2c002f..86b5a1a 100644 --- a/hosts/common/users/sam/default.nix +++ b/hosts/common/users/sam/default.nix @@ -1,10 +1,15 @@ { pkgs, inputs, config, lib, ... }: +let + pubKeys = lib.filesystem.listFilesRecursive (./keys); +in { users.users.sam = { isNormalUser = true; - password = "nixos"; # Overridden if sops is working + #password = "nixos"; # Overridden if sops is working shell = pkgs.zsh; # default shell + openssh.authorizedKeys.keys = lib.lists.forEach pubKeys (key: builtins.readFile key); + extraGroups = [ "wheel" "docker"