auto: bootstrapping bootstrap-nixos

This commit is contained in:
Sam 2024-05-22 21:14:20 +01:00
parent 806c8364d7
commit 104bcd2615
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,7 @@
{ inputs, config, lib, pkgs, outputs,... }: { inputs, config, lib, pkgs, outputs,... }:
let
pubKeys = lib.filesystem.listFilesRecursive (../common/users/keys);
in
{ {
imports = imports =
[ [
@ -51,6 +54,7 @@
users = { users = {
mutableUsers = true; mutableUsers = true;
openssh.authorizedKeys.keys = lib.lists.forEach pubKeys (key: builtins.readFile key);
extraUsers = { extraUsers = {
root = { root = {
initialPassword = "1234"; initialPassword = "1234";
@ -86,7 +90,7 @@
IdentitiesOnly yes IdentitiesOnly yes
StrictHostKeyChecking no StrictHostKeyChecking no
IdentityFile /etc/ssh/deploy_key-ssh-ed25519 IdentityFile /etc/ssh/deploy_key-ssh-ed25519
'' '';
security.pam = { security.pam = {
sshAgentAuth.enable = true; sshAgentAuth.enable = true;