From 6a10f760cf7284fe18f5fd0fbb56b3afc92a5ba0 Mon Sep 17 00:00:00 2001 From: alexion Date: Sun, 19 Jul 2026 07:49:32 -0400 Subject: [PATCH] refactor(lib): remove the unused scriptFromFile helper It had no callers; the built system's derivation is unchanged by its removal. --- lib/default.nix | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index 6318ebe..ca62fd5 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -65,17 +65,11 @@ let hostNames = attrNames (filterAttrs (_name: type: type == "directory") (builtins.readDir hostsDir)); in genAttrs hostNames (hostName: mkHost { inherit hostName; }); - - # --- Script-from-file helper -------------------------------------------- - # Turn a standalone script file into a package on PATH, keeping the script - # itself editable as a real file rather than an inlined heredoc. - scriptFromFile = pkgs: name: path: pkgs.writeShellScriptBin name (builtins.readFile path); in { inherit collectNixFiles mkHost mkHosts - scriptFromFile ; }