adding vpns
This commit is contained in:
@@ -17,23 +17,6 @@ in
|
|||||||
defaultSopsFormat = "yaml";
|
defaultSopsFormat = "yaml";
|
||||||
age.keyFile = "/home/blake/.config/sops/age/keys.txt";
|
age.keyFile = "/home/blake/.config/sops/age/keys.txt";
|
||||||
|
|
||||||
secrets = {
|
|
||||||
# define secrets with the following syntax
|
|
||||||
# secret path is the nesting of headings in the yaml file
|
|
||||||
# the secret is auto place in /run/<path to secret> path allows you to symlink to the /run to where ever is needed
|
|
||||||
# "<secret_name/path>" = {
|
|
||||||
# owner = "<user>";
|
|
||||||
# group = "<group>";
|
|
||||||
# path = "<path on system to place flile>"
|
|
||||||
# };
|
|
||||||
|
|
||||||
"tailscale_authkey" = lib.mkIf config.modules.system.tailscale.enable {
|
|
||||||
owner = "root";
|
|
||||||
};
|
|
||||||
"borg_passwd" = lib.mkIf config.modules.system.backups.enable {
|
|
||||||
owner = "root";
|
|
||||||
group = "root";
|
|
||||||
};
|
|
||||||
|
|
||||||
"blake_passwd" = lib.mkIf config.users.blake.enable {
|
"blake_passwd" = lib.mkIf config.users.blake.enable {
|
||||||
owner = "root";
|
owner = "root";
|
||||||
|
|||||||
@@ -15,5 +15,10 @@ in
|
|||||||
useRoutingFeatures = "both";
|
useRoutingFeatures = "both";
|
||||||
authKeyFile = authkey_file;
|
authKeyFile = authkey_file;
|
||||||
};
|
};
|
||||||
|
# declare authkey secrets
|
||||||
|
sops.secrets = {
|
||||||
|
"tailscale_authkey" = {
|
||||||
|
owner = "root";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user