Commit Graph

610 Commits

Author SHA1 Message Date
Michael Hoang
b6168ba67a nixos-anywhere: move unmount into reboot phase
This means that users can now access the mounted filesystems by omitting
the `reboot` phase.

You can combine this with `--disko-mode mount` to mount and upgrade an
existing system before running `nixos-enter` to run commands on it.

    $ nixos-anywhere --disko-mode mount --phases kexec,disko,install
2024-09-28 13:52:48 +00:00
Jörg Thalheim
63eae64ea7
Merge pull request #396 from nix-community/joerg-ci
fix flags in nixos-generate-config examples
2024-09-27 17:19:28 +02:00
Jörg Thalheim
44c8dfbaba add howto to repair nixos installations 2024-09-27 17:12:23 +02:00
Jörg Thalheim
16b035e64d fix disko format mode 2024-09-27 16:51:58 +02:00
Jörg Thalheim
b3ed5b500f fix flags in nixos-generate-config examples 2024-09-27 16:47:29 +02:00
Jörg Thalheim
082fb157f2
Merge pull request #394 from nix-community/joerg-ci
Mention lsblk in disko section
2024-09-27 16:37:26 +02:00
Jörg Thalheim
f59c44a4d9 better disko docs 2024-09-27 16:24:16 +02:00
Jörg Thalheim
3aca18af6f nixos-generate-config: don't include filesystems
we already get these from disko.
2024-09-27 13:42:16 +00:00
Jörg Thalheim
553320c73a docs: document hardware generation flags 2024-09-27 13:42:16 +00:00
Jörg Thalheim
a2adda7d26 don't allow to run the vm test if we have generate-hardware-configuration set 2024-09-27 13:42:16 +00:00
Jörg Thalheim
0a1dd4c772 fix help of --generate-hardware-config 2024-09-27 13:42:16 +00:00
Jörg Thalheim
876df37141 documentation: add missing options 2024-09-27 13:42:16 +00:00
Jörg Thalheim
9811c4f4a9 allow to only mount or create partitions with disko
This allows to repair installations or create new filesystems without
removing the existing data.
2024-09-27 13:42:16 +00:00
Jörg Thalheim
c89b16bdaa disable deno on darwin 2024-09-26 17:42:44 +00:00
Jörg Thalheim
18a4a69e13 integrate hardware configuration generation
wip
2024-09-26 17:42:44 +00:00
Jörg Thalheim
9508c00878 bump flakes 2024-09-26 17:42:44 +00:00
Jörg Thalheim
5a81b4c8ce flake.nix: remove unused arg 2024-09-26 17:42:44 +00:00
Jörg Thalheim
9d3b460ec4 from-nixos-with-sudo: no longer use stop-after-disko 2024-09-26 17:42:44 +00:00
Jörg Thalheim
df96ab6c9f terraform: only set SSHPASS and SSH_PRIVATE_KEY if values are not null 2024-09-24 14:06:59 +00:00
Jörg Thalheim
abbe9752dd terraform: add missing phases 2024-09-24 14:06:59 +00:00
Rafael Oliveira
d5ced5dc30 terraform: fix typos in phase subtraction 2024-09-19 12:14:09 +00:00
Jörg Thalheim
e4af92bcf6
Merge pull request #386 from chreekat/b/fix-substitute-on-destination
Re-invert behavior of --no-substitute-on-destination
2024-09-19 14:07:42 +02:00
Jörg Thalheim
95efb19b0b make printBuildLogs a local variable 2024-09-18 16:28:57 +02:00
Bryan Richter
c928f74206 Re-invert behavior of --no-substitute-on-destination
Accidentally inverted in 763732541f
2024-09-18 16:28:57 +02:00
Jörg Thalheim
9db169c166
Merge pull request #384 from nix-community/terraform-fixes
Terraform fixes
2024-09-16 14:32:02 +02:00
Jörg Thalheim
b699b3084d terraform: add missing phases 2024-09-16 13:10:59 +02:00
Jörg Thalheim
8714293d5e add missing flags in documentation 2024-09-16 13:06:47 +02:00
Michael Hoang
fadbb6357d terraform/install: fix build_on_remote = false
Due to the Terraform variables being passed to `run-nixos-anywhere.sh`
via environment variables, these environment variables wound up getting
passed to `nixos-anywhere`.

`nixos-anywhere` would then read the value `false` which would break
everything as it expects the variable to be unset or set to `y`, leading
to `disko_script` not being set.
2024-09-16 11:06:09 +00:00
Michael Hoang
6c03cc1cca nixos-anywhere: avoid ssh-ng:// with nix copy
Fixes #347

Co-Authored-By: mangoiv <mail@mangoiv.com>
2024-09-16 11:06:09 +00:00
Jörg Thalheim
4f2fdae6a7 make sure all arrays have always a value 2024-09-16 10:04:42 +00:00
Jörg Thalheim
4e18e86226 make sure all facts are set by get-facts 2024-09-16 10:04:42 +00:00
Jörg Thalheim
2d8325a518 make sure sshConnection is always set 2024-09-16 10:04:42 +00:00
Jörg Thalheim
b26f5fbb49 make sure flakeAttr is always defined 2024-09-16 10:04:42 +00:00
Jörg Thalheim
c6ff714f9b sshPrivateKeyFile should be always defined 2024-09-16 10:04:42 +00:00
Jörg Thalheim
31d64dc9eb phases should be always defined 2024-09-16 10:04:42 +00:00
Jörg Thalheim
768b761c37 better check if diskEncryptionKeys is empty in vm-test 2024-09-16 10:04:42 +00:00
Jörg Thalheim
fa53e7763c make sure flake is always defined 2024-09-16 10:04:42 +00:00
Jörg Thalheim
e1616654ce only enable envPassword if it is actually set 2024-09-16 10:04:42 +00:00
Jörg Thalheim
763732541f remove global substituteOnDestination flag 2024-09-16 10:04:42 +00:00
Jörg Thalheim
b446e23537 make ssh host optional again in vm-test 2024-09-16 10:04:42 +00:00
Jörg Thalheim
9f49c61197 make sure extraFiles is always defined 2024-09-16 10:04:42 +00:00
Jörg Thalheim
af2d9d0fd2 make sure nixosSystem is always defined 2024-09-16 08:39:14 +00:00
Jörg Thalheim
ac9d12ff83 make sure diskoScript is always defined 2024-09-16 08:39:14 +00:00
asymmetric
5447da117e Update docs/quickstart.md
Co-authored-by: Sizhe Zhao <prc.zhao@outlook.com>
2024-09-16 06:42:15 +00:00
asymmetric
dade049945 Fix path in snippet 2024-09-16 06:42:15 +00:00
Jörg Thalheim
89442fb6a5
Merge pull request #374 from zimbatm/fix-sshpass
terraform: fix SSH_PASS
2024-09-16 08:34:34 +02:00
Jörg Thalheim
05ab6b90d9
Merge pull request #377 from jfroche/fix/unbound-sshkeydir
Fix sshKeyDir unbound variable
2024-09-16 08:33:30 +02:00
Jörg Thalheim
00a41d52a3
Merge pull request #380 from nix-community/mergify/Mic92/config-update
ci(Mergify): configuration update
2024-09-13 11:23:07 +02:00
Jörg Thalheim
61da409bb7 ci(Mergify): configuration update
Signed-off-by: Jörg Thalheim <null>
2024-09-13 11:22:58 +02:00
Jean-François Roche
b3b6bfebba Fix sshKeyDir unbound variable
This closes #376
2024-09-12 01:15:54 +02:00