about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-24 15:28:06 +0100
committerSoispha <soispha@vhack.eu>2024-02-24 15:28:06 +0100
commita2e2ecff05008f1f20e85010e1c79ff5ec64c4a6 (patch)
treed1941868c0b2c504e17f8962932c5f2f6ec7a799
parentchore(version): v1.33.1 (diff)
downloadnixos-config-a2e2ecff05008f1f20e85010e1c79ff5ec64c4a6.tar.gz
nixos-config-a2e2ecff05008f1f20e85010e1c79ff5ec64c4a6.zip
fix(treewide): Add shell library import directive
Diffstat (limited to '')
-rwxr-xr-xhm/soispha/conf/gpg/agent-program.sh6
-rw-r--r--hm/soispha/conf/unison/default.nix7
-rwxr-xr-xsys/nixpkgs/pkgs/scripts/source/specific/neorg/neorg_id_function.sh6
-rwxr-xr-xsys/nixpkgs/pkgs/snap-sync-forked/snap-sync-forked.sh5
4 files changed, 21 insertions, 3 deletions
diff --git a/hm/soispha/conf/gpg/agent-program.sh b/hm/soispha/conf/gpg/agent-program.sh
index e6917db0..2f159ba9 100755
--- a/hm/soispha/conf/gpg/agent-program.sh
+++ b/hm/soispha/conf/gpg/agent-program.sh
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/usr/bin/env dash
+
+# shellcheck source=/dev/null
+SHELL_LIBRARY_VERSION="2.1.1" . %SHELL_LIBRARY_PATH
+
 onlykey-gpg-agent -v --skey-slot=ECC32 --dkey-slot=ECC32 "$@"
diff --git a/hm/soispha/conf/unison/default.nix b/hm/soispha/conf/unison/default.nix
index 94824fc9..7b91920c 100644
--- a/hm/soispha/conf/unison/default.nix
+++ b/hm/soispha/conf/unison/default.nix
@@ -134,8 +134,13 @@ in {
     (sysLib.writeShellScript {
       name = "unison-sync";
       src = builtins.toFile "unison-backup" (''
-          #!/usr/bin/env sh
+          #!/usr/bin/env dash
+
+          # shellcheck source=/dev/null
+          SHELL_LIBRARY_VERSION="2.1.1" . %SHELL_LIBRARY_PATH
+
           export UNISON=${esa unisonPath};
+
           if [ "$1" = "links" ]; then
             EXTRA_OPTIONS="-links=true";
           fi
diff --git a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/neorg_id_function.sh b/sys/nixpkgs/pkgs/scripts/source/specific/neorg/neorg_id_function.sh
index 7c3fb2a3..aa79a2ac 100755
--- a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/neorg_id_function.sh
+++ b/sys/nixpkgs/pkgs/scripts/source/specific/neorg/neorg_id_function.sh
@@ -1,4 +1,8 @@
-#! /bin/sh
+#! /usr/bin/env dash
+
+# shellcheck source=/dev/null
+SHELL_LIBRARY_VERSION="2.1.1" . %SHELL_LIBRARY_PATH
+
 context="$(task _get rc.context)"
 if [ "$context" ]; then
     filter="project:$context"
diff --git a/sys/nixpkgs/pkgs/snap-sync-forked/snap-sync-forked.sh b/sys/nixpkgs/pkgs/snap-sync-forked/snap-sync-forked.sh
index 47230667..ccfb8aad 100755
--- a/sys/nixpkgs/pkgs/snap-sync-forked/snap-sync-forked.sh
+++ b/sys/nixpkgs/pkgs/snap-sync-forked/snap-sync-forked.sh
@@ -1,4 +1,9 @@
 #!/usr/bin/env bash
+
+# shellcheck source=/dev/null
+SHELL_LIBRARY_VERSION="2.1.1" . %SHELL_LIBRARY_PATH
+
+#
 # snap-sync
 # https://github.com/wesbarnett/snap-sync
 # Copyright (C) 2016-2021 Wes Barnett