add declarative syncthing for bulwark

This commit is contained in:
Tyler Starr 2023-10-13 21:06:28 -07:00
parent 2103a00a33
commit f1f873f1ab
2 changed files with 26 additions and 10 deletions

View File

@ -1,8 +1,9 @@
{ config, lib, pkgs, pkgs-unstable, user, ... }:
{
imports = [
./steam-deck.nix
../../modules
./steam-deck.nix
./syncthing.nix
];
nix = {
@ -90,20 +91,11 @@
jellyfin.enable = false;
peripherals.enable = false;
samba-client.enable = true;
syncthing.enable = true;
virt-manager.enable = false;
};
system = {
ssh.enable = true;
terminal.enable = true;
# Wireguard managed by gnome
#wireguard-client = {
# enable = true;
# privateKeyFile = "/home/${user}/.wireguard/bulwark";
# address = [ "192.168.3.4/24" ];
# publicKey = "bd7bbZOngl/FTdBlnbIhgCLNf6yx5X8WjiRB7E1NEQQ=";
# endpoint = "66.218.43.87";
#};
};
};
# Did you read the comment?

View File

@ -0,0 +1,24 @@
{ config, lib, pkgs, user, ... }:
{
environment.systemPackages = with pkgs; [ syncthing ];
services.syncthing = {
enable = true;
user = "${user}";
configDir = "/home/${user}/.config/syncthing";
overrideDevices = true;
overrideFolders = true;
devices = {
"kestrel" = { id = "TY6I6UK-YWXZYB4-7DKSB5Y-6ZBGE6U-T5WNJK4-KPLTXP7-ZTZQPXU-LX4HPQZ"; };
};
folders = {
"Gamecube Saves" = {
path = "/home/${user}/.local/share/dolphin-emu/GC";
devices = [ "kestrel" ];
};
"Switch Saves" = {
path = "/home/${user}/.local/share/yuzu/nand/user/save/0000000000000000/705C6CE0127692D598F92E68B640D644";
devices = [ "kestrel" ];
};
};
};
}