summary refs log tree commit diff
path: root/pkgs/os-specific/linux/nixos-rebuild
Commit message (Collapse)AuthorAge
* nixos-rebuild: Set inherit_errexitEelco Dolstra2021-07-28
| | | | | | | | | | | | | | | | | | | | | | Without this, failure of nixBuild() and nixFlakeBuild() was ignored (since bash doesn't inherit 'set -e' in subshells by default), so the script would proceed with a bogus ./result link, e.g. ++ readlink -f /tmp/nixos-rebuild.NfHKxx/result + pathToConfig='/nix/store/m7dvk6an18cpr95qn5wnig2600qhv6w7-nix-2.4pre20210727_706777a/bin/nix /tmp/nixos-rebuild.NfHKxx/result' + '[' test = switch -o test = boot ']' + copyToTarget '/nix/store/m7dvk6an18cpr95qn5wnig2600qhv6w7-nix-2.4pre20210727_706777a/bin/nix /tmp/nixos-rebuild.NfHKxx/result' + '[' '' = '' ']' + '[' test = switch -o test = boot -o test = test -o test = dry-activate ']' + targetHostCmd /nix/store/m7dvk6an18cpr95qn5wnig2600qhv6w7-nix-2.4pre20210727_706777a/bin/nix /tmp/nixos-rebuild.NfHKxx/result/bin/switch-to-configuration test + '[' -z '' ']' + sudo -- /nix/store/m7dvk6an18cpr95qn5wnig2600qhv6w7-nix-2.4pre20210727_706777a/bin/nix /tmp/nixos-rebuild.NfHKxx/result/bin/switch-to-configuration test error: '/tmp/nixos-rebuild.NfHKxx/result/bin/switch-to-configuration' is not a recognised command Try '/nix/store/m7dvk6an18cpr95qn5wnig2600qhv6w7-nix-2.4pre20210727_706777a/bin/nix --help' for more information. + echo 'warning: error(s) occurred while switching to the new configuration' warning: error(s) occurred while switching to the new configuration
* nixos-rebuild: fix --use-remote-sudornhmjoj2021-06-18
| | | | | | | | | | | Currently fails with: $ nixos-rebuild test --target-host myhost --use-remote-sudo building Nix... sudo: /run/current-system/sw/bin/sudo must be owned by uid 0 and have the setuid bit set It seems setting an explicit PATH in the ssh command overrides the remote setuid wrappers.
* nixos-rebuild: fix creating ./result symlink for flakesSamuel Gräfenstein2021-06-15
|
* nixos-rebuild: fix extraBuildFlags usage with flakesJonathan Ringer2021-06-11
|
* nixos-rebuild: remove unused variable: remotePATHJonathan Ringer2021-06-11
|
* nixos-rebuild: prevent wordsplittingJonathan Ringer2021-06-11
|
* nixos-rebuild: prevent masking return value with declarationJonathan Ringer2021-06-11
|
* nixos-rebuild: remove repair, never usedJonathan Ringer2021-06-11
|
* nixos-rebuild: Pass flakes flags when doing local flakes buildChuck2021-06-10
|
* nixos-rebuild --fast: Don't imply --show-traceEelco Dolstra2021-06-03
| | | | | | | There is no logical reason for --fast to imply --show-trace, and this seems to be a historical accident. Using --show-trace by default is bad UX since it can give very long error messages (e.g. 550 lines for a non-existent attribute in environment.systemPackages).
* Merge pull request #122987 from alyssais/nixos-rebuild-aarch64Robert Hensing2021-05-16
|\ | | | | nixos-rebuild: support prebuilt Nix on aarch64
| * nixos-rebuild: support prebuilt Nix on aarch64Alyssa Ross2021-05-14
| | | | | | | | | | We have a fallback hashes entry for aarch64-linux, but it was unused by nixos-rebuild.
* | nixos-rebuild: Don’t reset the experimental featuresThéophane Hufschmitt2021-05-16
|/ | | | | Make sure that the Nix `experimental-features` set by a user aren’t overwritten when running `nixos-rebuild --flake` by using `--extra-experimental-features` rather than `--experimental-features`. Fix https://github.com/NixOS/nix/issues/4784
* nixos-rebuild: Use old-style nix command when building flake on a remote hostCharlotte Van Petegem2021-04-16
|
* nixos-rebuild: Allow remote building when using flakesCharlotte Van Petegem2021-04-16
|
* nixos-rebuild: nix flake info -> nix flake metadataCole Helbling2021-03-18
| | | | | | | As of https://github.com/NixOS/nix/commit/66fa1c7375e4b3073a16df4678cf1d37446ed20b, the `nix flake info` and `nix flake list-inputs` commands were merged into `nix flake metadata`.
* Merge pull request #108879 from kreisys/nixos-rebuild-no-systemctlJörg Thalheim2021-03-07
|\ | | | | nixos-rebuild: Remove ambient systemctl dependency
| * Remove unnecessary check that uses systemctlShay Bergmann2021-02-02
| | | | | | | | | | | | | | | | The use of systemctl makes this incompatible with darwin even though building/deploying a nixos closure from darwin is a perfectly valid use case. NIX_DAEMON is pretty much unnecessary nowadays as nix uses other indicators for deciding whether to use the daemon or not.
* | nixos-rebuild: use remote $PATH in buildHostCmdfricklerhandwerk2021-02-10
| | | | | | | | | | | | | | | | | | | | | | | | this fixes the issue when using nixos-rebuild switch --target-host <target> --use-remote-sudo when the local machine does not have anything in `$PATH` that would resolve to `sudo` on the remote machine. the single quotes prevent expansion of `$PATH` on the local machine, such that the remote machine's value of that variable is used.
* | --no-net is now --offlineDomen Kožar2021-02-05
|/
* nixos-rebuild: put some important dependencies in PATHDominik Xaver Hörl2021-01-16
|
* move nixos-rebuild into pkgsDomen Kožar2021-01-15