nix: update openvpn patch
[julm/julm-nix.git] / build
diff --git a/build b/build
index 09d11a63dfacdb8e8fa0293f06c2129ad3c2c249..cbb8e4513e25fe783b1f430e00274d857195333c 100755 (executable)
--- a/build
+++ b/build
@@ -1,6 +1,6 @@
 #!/bin/sh -eux
 cd "${0%/*}"
-chmod -R g-rwx,o-rwx "$PWD/private/root"
+chmod -R g-rwx,o-rwx private/root
 trap 'git reset private/root' EXIT
 git rm -rf --cached --ignore-unmatch private/root # prevent copying to /nix/store
-time nix -L build .\#nixosConfigurations."$1".config.system.build.toplevel
+time nix -L build -o hosts/"$1".root .\#nixosConfigurations."$1".config.system.build.toplevel