diff options
| author | Martin Fischer <martin@push-f.com> | 2026-01-25 10:49:47 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-01-25 10:49:47 +0100 |
| commit | 2221c0037cd039d82eb45182e75c2b7bd6224a24 (patch) | |
| tree | 04cf42de49c695d1d4bfa4db132b3eadd92e1283 /nixos | |
| parent | 9cbeb3d9b3878d57f2c0def4bbe3d928001a69c5 (diff) | |
refactor: automatically install all scripts/
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/profiles/workstation/default.nix | 9 | ||||
| -rwxr-xr-x[-rw-r--r--] | nixos/profiles/workstation/scripts/ed | 0 |
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 |
