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,... }:
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;