mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 15:59:06 +02:00
add secrets
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
{ ... }: {
|
||||
flake.nixosModules.sshd = {
|
||||
flake.nixosModules.sshd = { config, user, ... }: {
|
||||
services.openssh.enable = true;
|
||||
|
||||
sops.secrets."users/${user}/intern/public" = {};
|
||||
|
||||
users.users.${user}.openssh.authorizedKeys.keyFiles = [
|
||||
config.sops.secrets."users/${user}/intern/public".path
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user