mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
newton: initial syncthing config
This commit is contained in:
parent
9947b1f1f9
commit
3ee8594bb5
2 changed files with 31 additions and 1 deletions
|
@ -3,9 +3,10 @@
|
|||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./disks.nix
|
||||
./network.nix
|
||||
./syncthing.nix
|
||||
#../modules/backup.nix
|
||||
../modules/compression.nix
|
||||
../modules/development.nix
|
||||
../modules/docker.nix
|
||||
../modules/networkdecrypt.nix
|
||||
../modules/service/mumble-server.nix
|
||||
|
|
29
nixos/newton/syncthing.nix
Normal file
29
nixos/newton/syncthing.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
sops.secrets.syncthing_key = {};
|
||||
sops.secrets.syncthing_cert = {};
|
||||
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
dataDir = "/srv/data";
|
||||
key = config.sops.secrets.syncthing_key.path;
|
||||
cert = config.sops.secrets.syncthing_cert.path;
|
||||
extraOptions = {
|
||||
options = {
|
||||
localAnnounceEnabled = false;
|
||||
};
|
||||
};
|
||||
devices = {
|
||||
"thinkman" = {
|
||||
id = "KXSCPX3-JCCFZM4-S2LQZZL-3AM6WRL-IPNWVG2-IB5FEDJ-YYFUIRR-VMDO3AL";
|
||||
};
|
||||
};
|
||||
folders = {
|
||||
"Music" = {
|
||||
path = "music";
|
||||
devices = [ "thinkman" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue