From 8fa2188c6896b2e602fea76b6cc3aab1072ef380 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 3 Aug 2023 21:26:28 -0600 Subject: [PATCH] [NixOS] Add syncthing --- nixos/full.nix | 7 ++++--- nixos/machines/biskcomp.nix | 1 + nixos/syncthing.nix | 14 ++++++++++++++ 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 nixos/syncthing.nix diff --git a/nixos/full.nix b/nixos/full.nix index ba9a0d2f..edca85c2 100644 --- a/nixos/full.nix +++ b/nixos/full.nix @@ -4,11 +4,12 @@ ./android.nix ./arm-incompatible.nix ./base.nix - ./games.nix - ./desktop.nix - ./xmonad.nix ./code.nix + ./desktop.nix ./extra.nix + ./games.nix ./internet-computer.nix + ./syncthing.nix + ./xmonad.nix ]; } diff --git a/nixos/machines/biskcomp.nix b/nixos/machines/biskcomp.nix index 31c415cf..9c6b76ab 100644 --- a/nixos/machines/biskcomp.nix +++ b/nixos/machines/biskcomp.nix @@ -3,6 +3,7 @@ ../internet-computer.nix ../raspberry-pi.nix ../base.nix + ../syncthing.nix # ../desktop.nix # ../xmonad.nix ]; diff --git a/nixos/syncthing.nix b/nixos/syncthing.nix new file mode 100644 index 00000000..0c38631b --- /dev/null +++ b/nixos/syncthing.nix @@ -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"; }; + }; + }; + }; +}