backwards: Add secrets for syncthing
This commit is contained in:
@@ -1,12 +1,22 @@
|
||||
{ ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
|
||||
cert = config.age.secrets.syncthing-cert.path;
|
||||
key = config.age.secrets.syncthing-key.path;
|
||||
|
||||
user = "alex";
|
||||
group = "users";
|
||||
|
||||
dataDir = "/home/alex/sync";
|
||||
};
|
||||
|
||||
age = {
|
||||
secrets = {
|
||||
"syncthing-cert".file = ../../../../secrets/backwards/syncthing-cert.age;
|
||||
"syncthing-key".file = ../../../../secrets/backwards/syncthing-key.age;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
BIN
secrets/backwards/syncthing-cert.age
Normal file
BIN
secrets/backwards/syncthing-cert.age
Normal file
Binary file not shown.
BIN
secrets/backwards/syncthing-key.age
Normal file
BIN
secrets/backwards/syncthing-key.age
Normal file
Binary file not shown.
@@ -31,6 +31,8 @@ in {
|
||||
|
||||
"backwards/root.backwards.age".publicKeys = [ backwards alex ];
|
||||
"backwards/root.backwards.pub.age".publicKeys = [ backwards alex ];
|
||||
"backwards/syncthing-cert.age".publicKeys = [ backwards alex ];
|
||||
"backwards/syncthing-key.age".publicKeys = [ backwards alex ];
|
||||
"backwards/alex.backwards-codeberg.org.age".publicKeys = [ backwards alex ];
|
||||
"backwards/alex.backwards-codeberg.org.pub.age".publicKeys = [ backwards alex ];
|
||||
"backwards/wpa_supplicant.conf.age".publicKeys = [ backwards alex ];
|
||||
|
||||
Reference in New Issue
Block a user