Commit Graph

501 Commits

Author SHA1 Message Date
Jörg Thalheim
a348625d82 reduce RAM requirements to 1GB 2024-06-07 15:18:31 +02:00
Jörg Thalheim
be8077ccaf migrate to gpt type from legacy table type 2024-06-07 13:12:36 +00:00
Jörg Thalheim
3eb37ae419 update testsuite to new nixos test api 2024-06-07 13:12:36 +00:00
Jörg Thalheim
f931e0db1f update default nixos kexec image to 24.05 2024-06-07 13:12:36 +00:00
lassulus
663d4b2bc0
Merge pull request #327 from Prince213/extra-files
Misc fixes to --extra-files
2024-05-28 10:05:20 +02:00
Sizhe Zhao
09f1f8306b
fix(src/nixos-anywhere): make root own copied files 2024-05-27 10:43:10 +08:00
Sizhe Zhao
5770dd84d2
fix(src/nixos-anywhere): extra-files expects a path 2024-05-27 10:42:04 +08:00
Sizhe Zhao
d8b8cc69b0 feat(terraform): don't mention rsync 2024-05-26 09:13:58 +00:00
Sizhe Zhao
131a6e3ec0 feat(src): remove rsync from runtimeDeps 2024-05-26 09:13:58 +00:00
Sizhe Zhao
62e554d177 feat(src/nixos-anywhere): don't use rsync 2024-05-26 09:13:58 +00:00
Sizhe Zhao
781d4ab156 fix(README): fix ram requirements without kexec 2024-05-26 08:57:19 +00:00
Jessica Del
da67ead960 Fix typo 2024-05-26 08:53:21 +00:00
Jessica Del
7528e6bcf8 use-without-flakes: Fix arguments of --store-paths 2024-05-26 08:53:21 +00:00
fidgetingbits
3f975977d9 Don't fail if .ssh/authorized_keys is missing 2024-05-26 08:47:21 +00:00
lassulus
242444d228
Merge pull request #313 from acid-bong/patch-1
src/get-facts.sh: remove the bashism
2024-05-08 08:42:28 +02:00
lassulus
b965b373f0
Merge pull request #314 from Prince213/typo-fix
fix(docs/howtos/no-os): fix typo
2024-05-08 08:41:45 +02:00
Sizhe Zhao
b27868f1a1
fix(docs/howtos/no-os): fix typo 2024-05-08 11:20:42 +08:00
Acid Bong
2f5b494e19
src/get-facts.sh: remove the bashism 2024-05-07 20:26:26 +03:00
Jörg Thalheim
782b61b0b6
Merge pull request #311 from a-kenji/bump/version
bump version to currently released version
2024-05-07 10:57:15 +02:00
a-kenji
2a30f395b6 bump version to currently released version 2024-05-07 10:06:15 +02:00
Maciej Krüger
313ac878e9 Detect IPv6 automatically, Rewrite kexec url
This uses ip r g 1.1.1.1 to test if there's any route to an IPv4
internet host

If that fails and the url is a github.com one it will change github.com
to gh-v6.com,
as specified in the documentation

This saves the user from an extra manual step and makes nixos-anywhere
better

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2024-04-30 06:48:37 +00:00
zimbatm
3170c45be4 fix bashism
[[ ]] is not available in POSIX sh, and test -o is not well defined
either.

Move the facts-gathering script out so it can be tested with shellcheck.
2024-04-29 16:23:53 +00:00
Victor Hugo Aguiar Pacce
88a60aa8b8 Allow installs through terraform to work on different ports
Signed-off-by: Victor Hugo Aguiar Pacce <victor.pacce@ossystems.com.br>
2024-04-29 16:19:09 +00:00
lassulus
4958ff8bf5
Merge pull request #306 from a-kenji/patch-1
docs: fix typos in quickstart
2024-04-23 15:11:38 +02:00
lassulus
5f06770db9
Merge pull request #305 from a-kenji/add-password
feat: add copy-password
2024-04-23 12:28:33 +02:00
a-kenji
a2b5fcaa9e feat: add env-password
Allow setting the bootstrap password on invocation of
`nixos-anywhere`.

This makes use of the `sshpass` program, to provide `ssh-copy-id` with
the password.

The `runtimeDeps` change in the following way:

sshpass: ∅ → 1.10, +29.5 KiB

Improves the usage especially together with the iso image installers of `nixos-images`.
2024-04-23 11:54:31 +02:00
Jörg Thalheim
a5f5d01ec1 fix mergify configuration 2024-04-23 11:31:27 +02:00
a-kenji
5c23bd64c2 docs: fix typos in quickstart 2024-04-23 10:35:44 +02:00
Paul Haerle
3f97a42aad
Merge pull request #303 from a-kenji/phrasing
help: fix phrasing
2024-04-20 12:32:42 +02:00
a-kenji
5561f00281 help: fix phrasing 2024-04-19 16:17:59 +02:00
Jörg Thalheim
05854a92a5
Merge pull request #293 from nbdd0121/main
Switch to root user if non-root user is used for nixos installer
2024-04-10 10:46:07 +02:00
a-kenji
fe35eb255f
Fix: link to official wiki (#299) 2024-04-10 01:17:53 +02:00
Jörg Thalheim
dfa627fdfa terraform: link to nixos wiki as an example 2024-04-06 17:43:43 +00:00
Gary Guo
52f932b262 Switch to root user if non-root user is used for nixos installer 2024-03-23 00:47:24 +00:00
Bruno Bigras
c34fd217b1
terraform/all-in-one.md: add syntax highlighting (#292) 2024-03-22 10:22:35 +01:00
Jörg Thalheim
c4f0d1f3de Revert "removed duplicate "/tmp/disk-1.key /tmp/disk-1.key""
This reverts commit e8a9227b1b.
2024-03-14 18:06:32 +00:00
Shea Levy
31c945ed58 Allow using doas in place of sudo.
doas is much smaller and is used by some distributions, such as
Alpine, instead of sudo.
2024-02-28 19:13:04 +00:00
Shea Levy
3572a7c47e Only require sh, not bash, on the remote machine 2024-02-28 19:13:04 +00:00
c_14
b6abac7b0e fix container detection
When systemd-detect-virt exists and we aren't in a container,
is_container contains "y none none" instead of none.

1. has outputs y/n to stdout which we need to remove
2. has always returns truthy, we need to check it's string value not the
   exit value
3. systemd-detect-virt --container returns non-zero when we aren't in a
   container, use if then else instead of && ||
2024-02-21 23:34:50 +00:00
Jörg Thalheim
9e34fce5da
Merge pull request #276 from srounce/patch-1
feat(terraform): re-export store path result from all-in-one module
2024-02-22 06:25:52 +07:00
Jörg Thalheim
06e70b3481
Merge pull request #281 from we-do-it-lu/patch-2
removed duplicate "/tmp/disk-1.key /tmp/disk-1.key"
2024-02-22 06:25:32 +07:00
Jörg Thalheim
d623c0094f
Merge pull request #282 from we-do-it-lu/patch-3
Typo
2024-02-22 06:25:18 +07:00
JayDeLux
7e7bb3b367
Typo 2024-02-12 15:11:19 +01:00
JayDeLux
e8a9227b1b
removed duplicate "/tmp/disk-1.key /tmp/disk-1.key" 2024-02-12 12:03:41 +01:00
Jonas Chevalier
d16702387b
Update all-in-one.md 2024-01-23 21:08:04 +01:00
Samuel Rounce
f71c9427c8
Add result output to all-in-one.md 2024-01-23 12:53:07 +00:00
Samuel Rounce
60d3b38bcb
feat(terraform): re-export store path result from all-in-one 2024-01-23 12:05:32 +00:00
mangoiv
4c94cecf3d [feat] remove -t parameter and replace it with a check of whether it's tty 2024-01-07 12:12:16 +00:00
Jörg Thalheim
2facb632d7 detect containers
In particular people might use openvz containers, which doesn't support kexec.
2024-01-07 12:07:28 +00:00
JayDeLux
6f7c428c4a Little typo 2024-01-05 21:24:50 +00:00