Syncthing refactor
This commit is contained in:
parent
c3529d6fe6
commit
2ef80de555
6 changed files with 50 additions and 42 deletions
45
nixos/common/services/syncthing-desktop.nix
Normal file
45
nixos/common/services/syncthing-desktop.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ username, ... }: {
|
||||
services.syncthing = {
|
||||
settings = {
|
||||
folders = {
|
||||
"kenshi-saves" = {
|
||||
id = "kenshi";
|
||||
path = "/home/${username}/.steam/steam/steamapps/compatdata/233860/pfx/drive_c/users/steamuser/AppData/Local/kenshi/";
|
||||
devices = [ "framework-server" "nixos-desktop" "nixos-framework" ];
|
||||
};
|
||||
# WoW Addons
|
||||
"wow-classic-addons" = {
|
||||
id = "wow-classic-addons";
|
||||
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_classic_/Interface/";
|
||||
devices = [ "framework-server" "nixos-desktop" "nixos-framework" ];
|
||||
};
|
||||
"wow-cata-addons" = {
|
||||
id = "wow-cata-addons";
|
||||
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_classic_era_/Interface/";
|
||||
devices = [ "framework-server" "nixos-desktop" "nixos-framework" ];
|
||||
};
|
||||
"wow-retail-addons" = {
|
||||
id = "wow-retail-addons";
|
||||
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_retail_/Interface/";
|
||||
devices = [ "framework-server" "nixos-desktop" "nixos-framework" ];
|
||||
};
|
||||
# WoW WTF
|
||||
"wow-classic-wtf" = {
|
||||
id = "wow-classic-wtf";
|
||||
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_classic_/WTF/";
|
||||
devices = [ "framework-server" "nixos-desktop" "nixos-framework" ];
|
||||
};
|
||||
"wow-cata-wtf" = {
|
||||
id = "wow-cata-wtf";
|
||||
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_classic_era_/WTF/";
|
||||
devices = [ "framework-server" "nixos-desktop" "nixos-framework" ];
|
||||
};
|
||||
"wow-retail-wtf" = {
|
||||
id = "wow-retail-wtf";
|
||||
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_retail_/WTF/";
|
||||
devices = [ "framework-server" "nixos-desktop" "nixos-framework" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,4 +1,6 @@
|
|||
{ username, hostname, deployment_type, ... }: {
|
||||
{ lib, username, hostname, deployment_type, desktop, ... }: {
|
||||
|
||||
imports = [ ] ++ lib.optional (builtins.isString desktop) ./syncthing-desktop.nix;
|
||||
# Set up the secrets file:
|
||||
sops.secrets."syncthing_cert" = {
|
||||
owner = "root";
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ inputs, config, lib, pkgs, system, ... }: {
|
||||
imports = [
|
||||
./disks.nix
|
||||
./syncthing.nix
|
||||
../../common/modules/secureboot.nix
|
||||
# ../../common/modules/yubikey-auth.nix
|
||||
# ../../common/modules/boot.nix
|
||||
|
@ -11,6 +10,7 @@
|
|||
../../common/services/tailscale-autoconnect.nix
|
||||
../../common/modules/builder.nix
|
||||
../../common/services/geoclue.nix
|
||||
../../common/services/syncthing.nix
|
||||
];
|
||||
|
||||
#### TEMPORARY TODO ####
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
{ username, ... }: {
|
||||
imports = [ ../../common/services/syncthing.nix ];
|
||||
|
||||
services.syncthing = {
|
||||
settings = {
|
||||
folders = {
|
||||
"kenshi-saves" = {
|
||||
id = "kenshi";
|
||||
path = "/home/${username}/.steam/steam/steamapps/compatdata/233860/pfx/drive_c/users/steamuser/AppData/Local/kenshi/";
|
||||
devices = [ "framework-server" "nixos-desktop" "nixos-framework" ];
|
||||
};
|
||||
"world-of-warcraft" = {
|
||||
id = "ergcw-ay6yg";
|
||||
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/";
|
||||
devices = [ "framework-server" "nixos-desktop" "nixos-framework" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -3,7 +3,6 @@
|
|||
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
./disks.nix
|
||||
./syncthing.nix
|
||||
../../common/services/tailscale-autoconnect.nix
|
||||
../../common/modules/secureboot.nix
|
||||
# ../../common/modules/boot.nix
|
||||
|
@ -12,6 +11,7 @@
|
|||
../../common/modules/builder.nix
|
||||
../../common/services/podman.nix
|
||||
../../common/services/geoclue.nix
|
||||
../../common/services/syncthing.nix
|
||||
];
|
||||
|
||||
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
{ username, ... }: {
|
||||
imports = [ ../../common/services/syncthing.nix ];
|
||||
services.syncthing = {
|
||||
settings = {
|
||||
folders = {
|
||||
"kenshi-saves" = {
|
||||
id = "kenshi";
|
||||
path = "/home/${username}/.steam/steam/steamapps/compatdata/233860/pfx/drive_c/users/steamuser/AppData/Local/kenshi/";
|
||||
devices = [ "framework-server" "nixos-desktop" "nixos-framework" ];
|
||||
};
|
||||
"world-of-warcraft" = {
|
||||
id = "ergcw-ay6yg";
|
||||
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/";
|
||||
devices = [ "framework-server" "nixos-desktop" "nixos-framework" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue