From 3258452b5b54656efcfc9ce28e06f399bdd0c31e Mon Sep 17 00:00:00 2001 From: derfenix Date: Tue, 7 Jan 2025 20:35:50 +0300 Subject: [PATCH] Update nix flake --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 757ee95..43cd55f 100644 --- a/flake.nix +++ b/flake.nix @@ -86,7 +86,7 @@ environment.systemPackages = [ self.packages.${pkgs.system}.photocatalog ]; systemd.services = lib.mapAttrs (_: sync: { - name = "photocatalog_x"; + name = "photocatalog_${lib.replaceChars ["/"] ["-"] sync.source}"; after = [ "local-fs.target" ]; path = [ pkgs.photocatalog @@ -97,6 +97,10 @@ '' else null; script = "photocatalog"; scriptArgs = "-source ${sync.source} -target ${sync.target} -skip-full-sync -watch"; + serviceConfig = '' + Type=oneshot + Restart=no + ''; } ) config.photocatalog.syncs; };