Add RAW Pictures to Syncthing
This commit is contained in:
parent
6e3d783a12
commit
3f9ff35d9b
8 changed files with 33 additions and 7 deletions
|
@ -14,7 +14,7 @@
|
||||||
in {
|
in {
|
||||||
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
|
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
|
||||||
|
|
||||||
imports = [ ] ++ lib.optional (builtins.isString desktop) ./syncthing-desktop.nix;
|
imports = [ ] ++ lib.optional (builtins.isString desktop) ./desktop.nix;
|
||||||
# Set up the secrets file:
|
# Set up the secrets file:
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
"syncthing/cert" = {
|
"syncthing/cert" = {
|
21
nixos/common/services/syncthing/pictures.nix
Normal file
21
nixos/common/services/syncthing/pictures.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
|
||||||
|
{ username, path ? "/home/${username}/Pictures/RAW}", ... }: let
|
||||||
|
devices = [
|
||||||
|
"framework13"
|
||||||
|
"framework16"
|
||||||
|
"nuc-server"
|
||||||
|
"nixos-desktop"
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
services.syncthing = {
|
||||||
|
settings = {
|
||||||
|
folders = {
|
||||||
|
"Photos" = {
|
||||||
|
id = "photos";
|
||||||
|
path = path;
|
||||||
|
devices = devices;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -10,9 +10,10 @@
|
||||||
# ../../common/modules/yubikey-auth.nix
|
# ../../common/modules/yubikey-auth.nix
|
||||||
../../common/modules/builder.nix
|
../../common/modules/builder.nix
|
||||||
../../common/services/geoclue.nix
|
../../common/services/geoclue.nix
|
||||||
../../common/services/syncthing.nix
|
|
||||||
../../common/services/forgejo-runner.nix
|
../../common/services/forgejo-runner.nix
|
||||||
../../common/services/docker.nix
|
../../common/services/docker.nix
|
||||||
|
../../common/services/syncthing/default.nix
|
||||||
|
../../common/services/syncthing/pictures.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
||||||
|
|
|
@ -11,9 +11,10 @@
|
||||||
../../common/modules/builder.nix
|
../../common/modules/builder.nix
|
||||||
../../common/services/docker.nix
|
../../common/services/docker.nix
|
||||||
../../common/services/geoclue.nix
|
../../common/services/geoclue.nix
|
||||||
../../common/services/syncthing.nix
|
|
||||||
../../common/services/ollama.nix
|
../../common/services/ollama.nix
|
||||||
../../common/services/forgejo-runner.nix
|
../../common/services/forgejo-runner.nix
|
||||||
|
../../common/services/syncthing/default.nix
|
||||||
|
../../common/services/syncthing/pictures.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.rocmSupport = true;
|
nixpkgs.config.rocmSupport = true;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{ inputs, config, lib, pkgs, system, ... }: {
|
{ username, inputs, config, lib, pkgs, system, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
|
(import ../../common/services/syncthing/photos.nix { path = "/home/${username}/Pictures/RAW/"; })
|
||||||
./disks.nix
|
./disks.nix
|
||||||
../../common/modules/secureboot.nix
|
../../common/modules/secureboot.nix
|
||||||
# ../../common/modules/yubikey-auth.nix
|
# ../../common/modules/yubikey-auth.nix
|
||||||
|
@ -10,7 +11,8 @@
|
||||||
../../common/services/tailscale-autoconnect.nix
|
../../common/services/tailscale-autoconnect.nix
|
||||||
../../common/modules/builder.nix
|
../../common/modules/builder.nix
|
||||||
../../common/services/geoclue.nix
|
../../common/services/geoclue.nix
|
||||||
../../common/services/syncthing.nix
|
../../common/services/syncthing/default.nix
|
||||||
|
../../common/services/syncthing/pictures.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.ollama.acceleration = "cuda";
|
services.ollama.acceleration = "cuda";
|
||||||
|
|
|
@ -6,12 +6,13 @@ let
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
( import ./../common/services/syncthing/photos.nix { path = "/Storage/Media/Pictures/RAW"; })
|
||||||
../../common/services/tailscale-autoconnect.nix
|
../../common/services/tailscale-autoconnect.nix
|
||||||
../../common/modules/secureboot.nix
|
../../common/modules/secureboot.nix
|
||||||
../../common/modules/ssh-luks.nix
|
../../common/modules/ssh-luks.nix
|
||||||
../../common/services/docker.nix
|
../../common/services/docker.nix
|
||||||
../../common/services/forgejo-runner.nix
|
../../common/services/forgejo-runner.nix
|
||||||
../../common/services/syncthing.nix
|
../../common/services/syncthing/default.nix
|
||||||
./disks.nix
|
./disks.nix
|
||||||
./mounts.nix
|
./mounts.nix
|
||||||
./cron.nix
|
./cron.nix
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 8ed82c9afaac6359cf4603196f7a5bd4b399a4b5
|
Subproject commit 26552d8bade6fa39188ebf68e9ffa1a8dcd75108
|
Loading…
Add table
Reference in a new issue