l syncthing: use module
This commit is contained in:
parent
90ab9c288e
commit
96fc1908a2
@ -17,6 +17,7 @@
|
||||
<stockholm/lass/2configs/backup.nix>
|
||||
<stockholm/lass/2configs/wine.nix>
|
||||
<stockholm/lass/2configs/blue-host.nix>
|
||||
<stockholm/lass/2configs/syncthing.nix>
|
||||
];
|
||||
|
||||
krebs.build.host = config.krebs.hosts.icarus;
|
||||
|
@ -7,6 +7,7 @@ with import <stockholm/lib>;
|
||||
<stockholm/lass/2configs/retiolum.nix>
|
||||
<stockholm/lass/2configs/blue-host.nix>
|
||||
<stockholm/lass/2configs/power-action.nix>
|
||||
<stockholm/lass/2configs/syncthing.nix>
|
||||
{
|
||||
services.xserver.enable = true;
|
||||
services.xserver.desktopManager.xfce.enable = true;
|
||||
|
@ -8,4 +8,13 @@ with import <stockholm/lib>;
|
||||
{ predicate = "-p tcp --dport 22000"; target = "ACCEPT";}
|
||||
{ predicate = "-p udp --dport 21027"; target = "ACCEPT";}
|
||||
];
|
||||
krebs.syncthing = {
|
||||
enable = true;
|
||||
cert = toString <secrets/syncthing.cert>;
|
||||
key = toString <secrets/syncthing.key>;
|
||||
peers = mapAttrs (n: v: { id = v.syncthing.id; }) (filterAttrs (n: v: v.syncthing.id != null) config.krebs.hosts);
|
||||
folders = [
|
||||
{ path = "/tmp/testsync"; peers = [ "icarus" "mors" "skynet" ]; }
|
||||
];
|
||||
};
|
||||
}
|
||||
|
0
lass/2configs/tests/dummy-secrets/syncthing.cert
Normal file
0
lass/2configs/tests/dummy-secrets/syncthing.cert
Normal file
0
lass/2configs/tests/dummy-secrets/syncthing.key
Normal file
0
lass/2configs/tests/dummy-secrets/syncthing.key
Normal file
Loading…
Reference in New Issue
Block a user