mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
add declarative syncthing for bulwark
This commit is contained in:
parent
2103a00a33
commit
f1f873f1ab
@ -1,8 +1,9 @@
|
|||||||
{ config, lib, pkgs, pkgs-unstable, user, ... }:
|
{ config, lib, pkgs, pkgs-unstable, user, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./steam-deck.nix
|
|
||||||
../../modules
|
../../modules
|
||||||
|
./steam-deck.nix
|
||||||
|
./syncthing.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
@ -90,20 +91,11 @@
|
|||||||
jellyfin.enable = false;
|
jellyfin.enable = false;
|
||||||
peripherals.enable = false;
|
peripherals.enable = false;
|
||||||
samba-client.enable = true;
|
samba-client.enable = true;
|
||||||
syncthing.enable = true;
|
|
||||||
virt-manager.enable = false;
|
virt-manager.enable = false;
|
||||||
};
|
};
|
||||||
system = {
|
system = {
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
terminal.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?
|
# Did you read the comment?
|
||||||
|
24
provision/hosts/bulwark/syncthing.nix
Normal file
24
provision/hosts/bulwark/syncthing.nix
Normal 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" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user