From 56463dec13004211543a727999bdeaee49c94712 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 2 Mar 2024 12:44:02 +0800 Subject: [PATCH] home-manager/files/mutable-files: update fetch script (again) --- modules/home-manager/files/mutable-files.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/home-manager/files/mutable-files.nix b/modules/home-manager/files/mutable-files.nix index 039bd6c0..b6481644 100644 --- a/modules/home-manager/files/mutable-files.nix +++ b/modules/home-manager/files/mutable-files.nix @@ -178,13 +178,14 @@ in '') cfg; - script = pkgs.writeShellApplication { - name = "fetch-mutable-files"; - runtimeInputs = with pkgs; [ archiver curl git gopass ]; - text = lib.concatStringsSep "\n" mutableFilesCmds; - }; + runtimeInputs = lib.makeBinPath (with pkgs; [ + archiver curl git gopass + ]); in - "${script}/bin/fetch-mutable-files"; + pkgs.writeShellScript "fetch-mutable-files" '' + export PATH=${runtimeInputs} + ${lib.concatStringsSep "\n" mutableFilesCmds} + ''; ExecStartPost = let