]> Git — Sourcephile - julm/julm-nix.git/blob - build
sanoid: prune off2
[julm/julm-nix.git] / build
1 #!/bin/sh -eux
2 cd "${0%/*}"
3 chmod -R g-rwx,o-rwx "$PWD/private/root"
4 trap 'git reset private/root' EXIT
5 git rm -rf --cached --ignore-unmatch private/root # prevent copying to /nix/store
6 time nix -L build .\#nixosConfigurations."$1".config.system.build.toplevel