From 2221c0037cd039d82eb45182e75c2b7bd6224a24 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 25 Jan 2026 10:49:47 +0100 Subject: refactor: automatically install all scripts/ --- nixos/profiles/workstation/default.nix | 9 ++++++++- nixos/profiles/workstation/scripts/ed | 0 2 files changed, 8 insertions(+), 1 deletion(-) mode change 100644 => 100755 nixos/profiles/workstation/scripts/ed (limited to 'nixos') diff --git a/nixos/profiles/workstation/default.nix b/nixos/profiles/workstation/default.nix index 86ca6b1..dab51dc 100644 --- a/nixos/profiles/workstation/default.nix +++ b/nixos/profiles/workstation/default.nix @@ -64,7 +64,14 @@ in (writeShellScriptBin "xdg-open" '' ${cmd50}/bin/open "$@" '') - (writeShellScriptBin "ed" (builtins.readFile ./scripts/ed)) + (stdenv.mkDerivation { + name = "workstation-scripts"; + src = ./scripts; + installPhase = '' + mkdir -p $out/bin + cp $src/* $out/bin/ + ''; + }) restic skim unzip diff --git a/nixos/profiles/workstation/scripts/ed b/nixos/profiles/workstation/scripts/ed old mode 100644 new mode 100755 -- cgit v1.3.1