[NixOS] Gitea secret can access syncthing user

This commit is contained in:
Ivan Malison 2024-04-08 05:49:38 +00:00
parent b8d4cf59b8
commit 5fae69b391
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
rec {
giteaSecret = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHRNHlKPGVnOATsbnkPccyK+C15TWGKbBwqNKt0UcQ81 imalison@adele";
hostKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG3UqIYs/NY0okKuiIO+dU2OM7A8vv3b6//GedagvLoX ryzen-shine.local"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFbM1sL/vlDhrqPV1OMIGi4dKG0tMKhWSXx95ccbfyM biskcomp.local"

View File

@ -27,6 +27,7 @@ in
extraGroups = [ "syncthing" "wheel" ];
home = "/var/lib/syncthing";
createHome = true;
openssh.authorizedKeys.keys = [giteaSecret];
};
ivanm = userDefaults // {
extraGroups = extraGroupsWithWheel;