From ff391fa462c6d961938a97d8692a7ea7cfa1f426 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 21 Aug 2022 13:25:43 +0200 Subject: [PATCH] add upload folder --- nixos/configs/pepe/syncthing.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/nixos/configs/pepe/syncthing.nix b/nixos/configs/pepe/syncthing.nix index 573170f..07a872f 100644 --- a/nixos/configs/pepe/syncthing.nix +++ b/nixos/configs/pepe/syncthing.nix @@ -1,6 +1,6 @@ { config, pkgs, lib, ... }: { - users.groups."syncthing".members = [ "mpd" "syncthing" "kodi" ]; + users.groups."syncthing".members = [ "mpd" "syncthing" "upload" ]; custom.samba-share = { enable = true; @@ -12,12 +12,19 @@ series2 = "/media/series"; books = config.services.syncthing.folders.books.path; }; - #private.test = { - # folder = ; - # users = "kodi"; - #}; + private.upload = { + folder = "/media/upload"; + users = "upload"; + }; }; + users.users.upload = { + isNormalUser = true; + group = "upload"; + }; + + users.groups.upload = {}; + sops.secrets.syncthing_cert = { }; sops.secrets.syncthing_key = { };