diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-11-30 16:16:59 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-11-30 16:16:59 +0100 |
| commit | 191b13a95500ae8a023ac816e7ff0319b3796a9c (patch) | |
| tree | 4cbc75738a86abc43fd1c2add0c3baa17dee2330 | |
| parent | modules/{common,steam,nixpkgs}: Disable Steam (diff) | |
| download | nixos-config-191b13a95500ae8a023ac816e7ff0319b3796a9c.zip | |
scripts/why-depends: Init
| -rw-r--r-- | .envrc | 2 | ||||
| -rwxr-xr-x | scripts/build.sh (renamed from build.sh) | 0 | ||||
| -rwxr-xr-x | scripts/why-depends | 14 |
3 files changed, 16 insertions, 0 deletions
diff --git a/.envrc b/.envrc index 294de504..f1c78da8 100644 --- a/.envrc +++ b/.envrc @@ -11,3 +11,5 @@ # If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. use flake + +PATH_add ./scripts diff --git a/build.sh b/scripts/build.sh index f3661978..f3661978 100755 --- a/build.sh +++ b/scripts/build.sh diff --git a/scripts/why-depends b/scripts/why-depends new file mode 100755 index 00000000..59f8d25b --- /dev/null +++ b/scripts/why-depends @@ -0,0 +1,14 @@ +#! /usr/bin/env sh + +package="$1" +version="$2" +shift 2 + +host="$(hostname)" + +fd "$package-$version" /nix/store --type directory | while read -r dir; do + nix why-depends "$@" ".#nixosConfigurations.$host.config.system.build.toplevel" "$dir" +done + + +# vim: ft=sh |
