From 7c9cc768471994ff224883f43022af193d5bd95a Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Fri, 25 Apr 2025 11:59:28 +0200 Subject: [PATCH] changed copyparty-env script to copyparty-hash. --- contrib/nixos/modules/copyparty.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/contrib/nixos/modules/copyparty.nix b/contrib/nixos/modules/copyparty.nix index bbcd4421..d3942da9 100644 --- a/contrib/nixos/modules/copyparty.nix +++ b/contrib/nixos/modules/copyparty.nix @@ -70,7 +70,7 @@ in { ''; }; - mkWrapper = mkOption { + mkHashWrapper = mkOption { type = types.bool; default = true; description = '' @@ -351,15 +351,18 @@ in { home = lib.mkIf cfg.separateHist externalStateDir; isSystemUser = true; }; - environment.systemPackages = lib.mkIf cfg.mkWrapper [ + environment.systemPackages = lib.mkIf cfg.mkHashWrapper [ ( let command = '' ${getExe cfg.package} -c ${runtimeConfigPath} \ ${optionalString (cfg.separateHist) "--hist ${externalCacheDir}"} \ + --shr-db ''' \ + --ses-db ''' \ + --ah-cli \ ''; in - pkgs.writeShellScriptBin "copyparty-env" '' + pkgs.writeShellScriptBin "copyparty-hash" '' set -a # automatically export variables # set same environment variables as the systemd service ${lib.pipe config.systemd.services.copyparty.environment [ @@ -369,7 +372,7 @@ in { ]} PATH=${config.systemd.services.copyparty.environment.PATH}:$PATH - exec ${command} "$@" + exec ${command} '' ) ];