fix user public keys

This commit is contained in:
Dennis Wuitz
2023-12-25 18:54:38 +01:00
parent dd4466b5a3
commit 7fcf8af4ad
7 changed files with 26 additions and 23 deletions

View File

@ -1,5 +1,7 @@
{ pkgs, lib, config, name, ... }:
import ../default.nix {
inherit pkgs lib config name;
pubKeys = [ "ed25516-AAAAAAA" ];
publicKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOGcqhLaKsjwAnb6plDavAhEyQHNvFS9Uh5lMTuwMhGF alice@parthenon-7588"
];
}

View File

@ -3,14 +3,13 @@
config,
pkgs,
name,
pubKeys ? [],
publicKeys ? [],
defaultShell ? "zsh",
}:
{
inherit name;
isNormalUser = true;
uid = 1000;
extraGroups = [
"wheel"
"media"
@ -24,5 +23,5 @@
"uaccess"
];
shell = pkgs.${defaultShell};
openssh.authorizedKeys.keys = pubKeys;
openssh.authorizedKeys.keys = publicKeys;
}