Setup specific syncthing config for Vanguard
This commit is contained in:
parent
8fd5491f57
commit
3ed62602f2
42
Vanguard.nix
42
Vanguard.nix
|
@ -5,6 +5,7 @@
|
||||||
./common.nix
|
./common.nix
|
||||||
./hardware/audio.nix
|
./hardware/audio.nix
|
||||||
./hardware/bluetooth.nix
|
./hardware/bluetooth.nix
|
||||||
|
./hardware/syncthing.nix
|
||||||
./locales/en_GB.nix
|
./locales/en_GB.nix
|
||||||
./desktop/hyprland.nix
|
./desktop/hyprland.nix
|
||||||
./desktop/steam.nix
|
./desktop/steam.nix
|
||||||
|
@ -40,6 +41,47 @@
|
||||||
programs.fish.shellAbbrs.update = "sudo nixos-rebuild switch";
|
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
|
# Extra hardware configuration
|
||||||
hardware.openrazer = {
|
hardware.openrazer = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
8
hardware/syncthing.nix
Normal file
8
hardware/syncthing.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
systemService = true;
|
||||||
|
openDefaultPorts = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -10,7 +10,6 @@
|
||||||
../../env/keychain.nix
|
../../env/keychain.nix
|
||||||
../../env/pypoetry.nix
|
../../env/pypoetry.nix
|
||||||
../../env/starship.nix
|
../../env/starship.nix
|
||||||
../../env/syncthing.nix
|
|
||||||
../../terminal/wezterm.nix
|
../../terminal/wezterm.nix
|
||||||
../../tui/neovim.nix
|
../../tui/neovim.nix
|
||||||
../../tui/lazygit.nix
|
../../tui/lazygit.nix
|
||||||
|
|
2
home/env/syncthing.nix
vendored
2
home/env/syncthing.nix
vendored
|
@ -2,7 +2,7 @@
|
||||||
{
|
{
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
tray = true;
|
tray.enable = true;
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [ syncthing-cli ];
|
home.packages = with pkgs; [ syncthing-cli ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue