auto: bootstrapping bootstrap-nixos
This commit is contained in:
parent
806c8364d7
commit
104bcd2615
|
@ -1,4 +1,7 @@
|
|||
{ inputs, config, lib, pkgs, outputs,... }:
|
||||
let
|
||||
pubKeys = lib.filesystem.listFilesRecursive (../common/users/keys);
|
||||
in
|
||||
{
|
||||
imports =
|
||||
[
|
||||
|
@ -51,6 +54,7 @@
|
|||
|
||||
users = {
|
||||
mutableUsers = true;
|
||||
openssh.authorizedKeys.keys = lib.lists.forEach pubKeys (key: builtins.readFile key);
|
||||
extraUsers = {
|
||||
root = {
|
||||
initialPassword = "1234";
|
||||
|
@ -86,7 +90,7 @@
|
|||
IdentitiesOnly yes
|
||||
StrictHostKeyChecking no
|
||||
IdentityFile /etc/ssh/deploy_key-ssh-ed25519
|
||||
''
|
||||
'';
|
||||
|
||||
security.pam = {
|
||||
sshAgentAuth.enable = true;
|
||||
|
|
Loading…
Reference in New Issue