added ssh pub key
This commit is contained in:
parent
240c099526
commit
c908a6a01f
|
@ -1,10 +1,15 @@
|
||||||
{ pkgs, inputs, config, lib, ... }:
|
{ pkgs, inputs, config, lib, ... }:
|
||||||
|
let
|
||||||
|
pubKeys = lib.filesystem.listFilesRecursive (./keys);
|
||||||
|
in
|
||||||
{
|
{
|
||||||
users.users.sam = {
|
users.users.sam = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
password = "nixos"; # Overridden if sops is working
|
#password = "nixos"; # Overridden if sops is working
|
||||||
shell = pkgs.zsh; # default shell
|
shell = pkgs.zsh; # default shell
|
||||||
|
|
||||||
|
openssh.authorizedKeys.keys = lib.lists.forEach pubKeys (key: builtins.readFile key);
|
||||||
|
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"wheel"
|
"wheel"
|
||||||
"docker"
|
"docker"
|
||||||
|
|
Loading…
Reference in New Issue