From e0c1af94da20b86d4b97b8aab5c782a4d0fce106 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Sun, 15 May 2022 00:44:06 -0700 Subject: [PATCH] make documentRoot and argument for ttrss and simplify definition --- Ttrss/default.nix | 130 +++++++++++++++++++++++----------------------- 1 file changed, 64 insertions(+), 66 deletions(-) diff --git a/Ttrss/default.nix b/Ttrss/default.nix index 34fd5d0..559f259 100644 --- a/Ttrss/default.nix +++ b/Ttrss/default.nix @@ -2,87 +2,85 @@ , pkgs , lib }: +{ documentRoot +, user ? "http" +, group ? "http" +}: { TtrssPostgresDB }: let - asTtrssConfig = attrs: builtins.concatStringsSep "\n" ([" $out/.dysnomia-targetdir - # echo "http:http" > $out/.dysnomia-filesetowner + echo "${documentRoot}" > $out/.dysnomia-targetdir + echo "${user}:${group}" > $out/.dysnomia-filesetowner cat > $out/.dysnomia-fileset <