added ssh pub key
This commit is contained in:
parent
240c099526
commit
c908a6a01f
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue