secrets: rename common secrets

This commit is contained in:
makefu 2023-10-02 01:07:30 +02:00
parent 0120e6b042
commit 8525509d15
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
32 changed files with 3 additions and 3 deletions

View file

@ -6,12 +6,12 @@ let
srvdir = "/var/lib/tor/onion/"; srvdir = "/var/lib/tor/onion/";
in in
{ {
sops.secrets."${name}/private_key" = { sops.secrets."${name}-private_key" = {
path = "${srvdir}/${name}/private_key"; path = "${srvdir}/${name}/private_key";
owner = "tor"; owner = "tor";
restartUnits = [ "tor.service" ]; restartUnits = [ "tor.service" ];
}; };
sops.secrets."${name}/hostname" = { sops.secrets."${name}-hostname" = {
path = "${srvdir}/${name}/hostname"; path = "${srvdir}/${name}/hostname";
owner = "tor"; owner = "tor";
restartUnits = [ "tor.service" ]; restartUnits = [ "tor.service" ];

View file

@ -1,5 +1,5 @@
{config,...}:{ {config,...}:{
nix.settings.strusted-users = [ "nixBuild" ]; nix.settings.trusted-users = [ "nixBuild" ];
users.users.nixBuild = { users.users.nixBuild = {
name = "nixBuild"; name = "nixBuild";
isNormalUser = true; isNormalUser = true;