secrets: rename common secrets
This commit is contained in:
parent
0120e6b042
commit
8525509d15
|
@ -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" ];
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue