added ssh pub key

This commit is contained in:
Sam 2024-05-12 20:10:41 +01:00
parent 240c099526
commit c908a6a01f
1 changed files with 6 additions and 1 deletions

View File

@ -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"