Add initialPassword management to ageni

This commit is contained in:
Théo Barnouin 2024-10-24 14:27:12 +02:00
parent a45482532d
commit d1994caee9
4 changed files with 12 additions and 3 deletions

View file

@ -28,6 +28,7 @@
options = "--delete-older-than 7d";
};
age.secrets.initialPassword.file = ./secrets/initialPassword.age;
security.sudo.wheelNeedsPassword = false;
users = {
users.tbarnouin = {
@ -38,7 +39,7 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAxccGxdfOFXeEClqz3ULl94ubzaJnk4pUus+ek18G0B tbarnouin@nixos"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICf1B0nxNMvPWSR9pStdtx2x6Iw+JUeCCt1CKWoD8dsr"
];
initialPassword = "test";
initialPassword = config.age.initialPassword.path;
};
users.root = {
openssh.authorizedKeys.keys = [