sourcephile
/
git
/
julm
/
julm-nix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a028f33
)
install: document when offline
author
Julien Moutinho
<julm+julm-nix@sourcephile.fr>
Thu, 9 Jun 2022 21:59:46 +0000
(23:59 +0200)
committer
Julien Moutinho
<julm+julm-nix@sourcephile.fr>
Thu, 16 Jun 2022 16:58:13 +0000
(18:58 +0200)
install
patch
|
blob
|
history
diff --git
a/install
b/install
index dc6b752cfb4759f45a83289652b663263935700f..8fa5d3c6c657072f2b7bea1fdf622b4c7c72becd 100755
(executable)
--- a/
install
+++ b/
install
@@
-7,6
+7,7
@@
else
ln -sfn "$PWD/private/root" /root/private
trap 'git reset private/root' EXIT
git rm -rf --cached --ignore-unmatch private/root # prevent copying to /nix/store
+ # To build offline, use: --option no-net 1 --option substituters ""
time nixos-rebuild switch --flake . "$@"
nix-env --delete-generations +9 --profile /nix/var/nix/profiles/system
fi