add fetch.sh

This commit is contained in:
Felix Bargfeldt 2025-04-19 15:06:22 +02:00
parent fd93b1b510
commit 29174c9cb7
Signed by: Defelo
GPG key ID: 2A05272471204DD3

6
fetch.sh Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
path=$(nix eval --raw .#nixosConfigurations."$(cat /proc/sys/kernel/hostname)".config.system.build.toplevel.outPath)
nix-store -r "$path"