nixos/fetch.sh
2025-04-19 15:06:34 +02:00

6 lines
178 B
Bash
Executable file

#!/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"