From c908a6a01fd1d0d685b28fdc5f2fbbbdffdbb8bc Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 12 May 2024 20:10:41 +0100 Subject: [PATCH] added ssh pub key --- hosts/common/users/sam/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"