remove syncthing for torus and shivan

This commit is contained in:
Tyler Starr 2024-10-22 21:11:54 -07:00
parent 4d47209a59
commit 9685fb8b07
7 changed files with 3 additions and 66 deletions

View File

@ -41,7 +41,6 @@
devices = {
"kestrel" = { id = "5WWL4FE-ARZ4FHP-J33HQCH-CZKEXLN-2RAY4KW-PDI754F-3HVPZYI-VC3ESAF"; };
};
folders = {};
};
};
system = {

View File

@ -60,8 +60,9 @@
enable = true;
keyPath = ../../secrets/syncthing/kestrel/key.pem.age;
certPath = ../../secrets/syncthing/kestrel/cert.pem.age;
devices = {};
folders = {};
devices = {
"bulwark" = { id = "YKPOWTQ-XMXG3SD-XKLPVEC-H4SO345-2ZZQK65-EBISRED-ISKCFMQ-T74P6Q5"; };
};
};
};
system = {

View File

@ -1,7 +1,6 @@
{ config, pkgs, user, lib, ... }:
{
imports = [
./syncthing.nix
];
# Use performance governor for sweet gaming performance!

View File

@ -1,28 +0,0 @@
{ config, lib, pkgs, user, ... }:
{
networking.firewall.allowedTCPPorts = [ 8384 22000 ];
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
environment.systemPackages = with pkgs; [
syncthing # File sync program for multiple devices in real-time.
];
services.syncthing = {
enable = true;
user = "${user}";
dataDir = "/home/${user}/.local/share/syncthing";
configDir = "/home/${user}/.config/syncthing";
guiAddress = "0.0.0.0:8384";
overrideDevices = true;
overrideFolders = true;
settings.devices = {
"kestrel" = { id = "KYEWTBL-GL343U7-OIM63LT-2IYGJAP-RCL545L-2KJOIY4-6352W6Y-DZRVGAL"; };
};
settings.folders = {
"General Sync" = {
path = "/home/${user}/sync";
devices = [ "kestrel" ];
};
};
};
}

View File

@ -4,7 +4,6 @@
../../modules
./wireguard-server.nix
./samba-server.nix
./syncthing.nix
./rss.nix
./home-assistant
./gitea.nix

View File

@ -1,24 +0,0 @@
{ config, lib, pkgs, user, ... }:
{
networking.firewall.allowedTCPPorts = [ 8384 22000 ];
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
environment.systemPackages = with pkgs; [
syncthing # File sync program for multiple devices in real-time.
];
services.syncthing = {
enable = true;
user = "${user}";
dataDir = "/home/${user}/.local/share/syncthing";
configDir = "/home/${user}/.config/syncthing";
guiAddress = "0.0.0.0:8384";
overrideDevices = true;
overrideFolders = true;
settings.devices = {
"kestrel" = { id = "TY6I6UK-YWXZYB4-7DKSB5Y-6ZBGE6U-T5WNJK4-KPLTXP7-ZTZQPXU-LX4HPQZ"; };
};
settings.folders = {
};
};
}

View File

@ -22,14 +22,6 @@ in {
A set of devices and associated IDs.
'';
};
folders = mkOption {
type = types.attrs;
default = {};
description = ''
A set of folders, each defined by a set of attributes like
path, devices, and other configuration options.
'';
};
};
config = lib.mkIf cfg.enable {
@ -62,7 +54,6 @@ in {
key = "/run/agenix/syncthing/key.pem";
cert = "/run/agenix/syncthing/cert.pem";
settings.devices = cfg.devices;
settings.folders = cfg.folders;
};
};
}