[NixOS] Add syncthing

This commit is contained in:
Ivan Malison 2023-08-03 21:26:28 -06:00
parent 5974d67b0b
commit 8fa2188c68
3 changed files with 19 additions and 3 deletions

View File

@ -4,11 +4,12 @@
./android.nix ./android.nix
./arm-incompatible.nix ./arm-incompatible.nix
./base.nix ./base.nix
./games.nix
./desktop.nix
./xmonad.nix
./code.nix ./code.nix
./desktop.nix
./extra.nix ./extra.nix
./games.nix
./internet-computer.nix ./internet-computer.nix
./syncthing.nix
./xmonad.nix
]; ];
} }

View File

@ -3,6 +3,7 @@
../internet-computer.nix ../internet-computer.nix
../raspberry-pi.nix ../raspberry-pi.nix
../base.nix ../base.nix
../syncthing.nix
# ../desktop.nix # ../desktop.nix
# ../xmonad.nix # ../xmonad.nix
]; ];

14
nixos/syncthing.nix Normal file
View File

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
services.syncthing = {
enable = true;
relaysEnabled = true;
settings = {
devices = {
ryzen-shine = { id = "63NX4LF-DHG7DLP-P6BHDKL-QL7TFXE-3DEGJ6G-TUBNXYS-UMI35KF-BV67WQP"; };
biskcomp = { id = "63SZFEC-AVA7MAL-MRJCZXN-3J4MKY6-52CK37Q-EQDN27P-7LOTYFX-UTL7YA3"; };
nixquick = { id = "LSRG4WP-GHW7UV6-IUL5PQB-NWDWVIZ-R7PBGEH-RCHLFRR-7JBPQU2-WFEGPQP"; };
};
};
};
}