Setup specific syncthing config for Vanguard

This commit is contained in:
Evie Litherland-Smith 2023-05-06 15:24:31 +01:00
parent 8fd5491f57
commit 3ed62602f2
4 changed files with 51 additions and 2 deletions

View file

@ -5,6 +5,7 @@
./common.nix
./hardware/audio.nix
./hardware/bluetooth.nix
./hardware/syncthing.nix
./locales/en_GB.nix
./desktop/hyprland.nix
./desktop/steam.nix
@ -40,6 +41,47 @@
programs.fish.shellAbbrs.update = "sudo nixos-rebuild switch";
};
services.syncthing = {
user = "xenia";
group = "users";
dataDir = "/mnt/secondary/syncthing";
devices = {
"ion" = { id = "7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB"; };
"monarch" = { id = "CJSUZQY-67XBLEZ-VKVHQHI-BLEUZNF-G4237AV-AW44CGH-F3JDKXU-CWT3RQZ"; };
};
folders = {
"Camera" = {
path = "/mnt/secondary/syncthing/camera";
label = "Camera";
id = "fp4_4j7w-photos";
devices = [ "ion" "monarch" ];
type = "receiveonly";
ignorePerms = true;
};
"Pictures" = {
path = "/mnt/secondary/syncthing/pictures";
label = "Pictures";
id = "ziuj8-rm6dn";
devices = [ "ion" "monarch" ];
ignorePerms = true;
};
"Movies" = {
path = "/mnt/secondary/syncthing/movies";
label = "Movies";
id = "3f75o-4x6sq";
devices = [ "ion" "monarch" ];
ignorePerms = true;
};
"Documents" = {
path = "/mnt/secondary/syncthing/documents";
label = "Documents";
id = "qc6qa-bipsd";
devices = [ "ion" "monarch" ];
ignorePerms = true;
};
};
};
# Extra hardware configuration
hardware.openrazer = {
enable = true;

8
hardware/syncthing.nix Normal file
View file

@ -0,0 +1,8 @@
{ ... }:
{
services.syncthing = {
enable = true;
systemService = true;
openDefaultPorts = true;
};
}

View file

@ -10,7 +10,6 @@
../../env/keychain.nix
../../env/pypoetry.nix
../../env/starship.nix
../../env/syncthing.nix
../../terminal/wezterm.nix
../../tui/neovim.nix
../../tui/lazygit.nix

View file

@ -2,7 +2,7 @@
{
services.syncthing = {
enable = true;
tray = true;
tray.enable = true;
};
home.packages = with pkgs; [ syncthing-cli ];
}