]> Git — Sourcephile - julm/julm-nix.git/blob - install
tor-browser: reenable
[julm/julm-nix.git] / install
1 #!/bin/sh -eux
2 cd "${0%/*}"
3 chmod -R g-rwx,o-rwx "$PWD/private/root"
4 trap 'git reset private/root private/hosts/*/root' EXIT
5 git rm -rf --cached --ignore-unmatch private/root private/hosts/*/root # prevent copying to /nix/store
6 sudo ln -sfn "$PWD/private/root" /root/private
7 # To build offline, use: --option no-net 1 --option substituters ""
8 sudo time nixos-rebuild switch --flake . "$@"
9 sudo nix-env --delete-generations +9 --profile /nix/var/nix/profiles/system