Add RAW Pictures to Syncthing

This commit is contained in:
albert 2025-02-24 12:21:10 -08:00
parent 6e3d783a12
commit 3f9ff35d9b
Signed by: albert
GPG key ID: 3895DD267CA11BA9
8 changed files with 33 additions and 7 deletions
nixos
common/services/syncthing
hosts
framework13
framework16
nixos-desktop
nuc-server
wallpapers

View file

@ -14,7 +14,7 @@
in {
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:
sops.secrets = {
"syncthing/cert" = {

View 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;
};
};
};
};
}

View file

@ -10,9 +10,10 @@
# ../../common/modules/yubikey-auth.nix
../../common/modules/builder.nix
../../common/services/geoclue.nix
../../common/services/syncthing.nix
../../common/services/forgejo-runner.nix
../../common/services/docker.nix
../../common/services/syncthing/default.nix
../../common/services/syncthing/pictures.nix
];
hardware.bluetooth.enable = true; # enables support for Bluetooth

View file

@ -11,9 +11,10 @@
../../common/modules/builder.nix
../../common/services/docker.nix
../../common/services/geoclue.nix
../../common/services/syncthing.nix
../../common/services/ollama.nix
../../common/services/forgejo-runner.nix
../../common/services/syncthing/default.nix
../../common/services/syncthing/pictures.nix
];
nixpkgs.config.rocmSupport = true;

View file

@ -1,5 +1,6 @@
{ inputs, config, lib, pkgs, system, ... }: {
{ username, inputs, config, lib, pkgs, system, ... }: {
imports = [
(import ../../common/services/syncthing/photos.nix { path = "/home/${username}/Pictures/RAW/"; })
./disks.nix
../../common/modules/secureboot.nix
# ../../common/modules/yubikey-auth.nix
@ -10,7 +11,8 @@
../../common/services/tailscale-autoconnect.nix
../../common/modules/builder.nix
../../common/services/geoclue.nix
../../common/services/syncthing.nix
../../common/services/syncthing/default.nix
../../common/services/syncthing/pictures.nix
];
services.ollama.acceleration = "cuda";

View file

@ -6,12 +6,13 @@ let
in {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
( import ./../common/services/syncthing/photos.nix { path = "/Storage/Media/Pictures/RAW"; })
../../common/services/tailscale-autoconnect.nix
../../common/modules/secureboot.nix
../../common/modules/ssh-luks.nix
../../common/services/docker.nix
../../common/services/forgejo-runner.nix
../../common/services/syncthing.nix
../../common/services/syncthing/default.nix
./disks.nix
./mounts.nix
./cron.nix

@ -1 +1 @@
Subproject commit 8ed82c9afaac6359cf4603196f7a5bd4b399a4b5
Subproject commit 26552d8bade6fa39188ebf68e9ffa1a8dcd75108