aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-01-25 10:49:47 +0100
committerMartin Fischer <martin@push-f.com>2026-01-25 18:14:41 +0100
commitf356eebce20050e35005ccba926f9c29f3d76039 (patch)
treee385c25c1c1439ea4522eb56ceb329e6892b6379
parent94c9b9905ab2ce4558f3846189e7044a0a31cae7 (diff)
refactor: automatically install all scripts/
-rw-r--r--nixos/profiles/workstation/default.nix9
-rwxr-xr-x[-rw-r--r--]nixos/profiles/workstation/scripts/ed0
2 files changed, 8 insertions, 1 deletions
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
index a3dd433..a3dd433 100644..100755
--- a/nixos/profiles/workstation/scripts/ed
+++ b/nixos/profiles/workstation/scripts/ed