Jörg Thalheim
3197bcf152
drop unused :
2023-08-05 10:38:56 +02:00
Jörg Thalheim
622e00afbb
also pass ssh_args to rsync
2023-08-05 10:37:25 +02:00
Jörg Thalheim
9df79870b0
Merge pull request #168 from bluepython508/nix-copy-ssh-args
...
Pass ssh_args to nix copy and nix build SSH invocations
2023-08-05 09:34:44 +01:00
Jörg Thalheim
ac89dd5178
add kexec support for linux-aarch64
2023-08-05 09:54:58 +02:00
bluepython508
5e450374b1
Pass ssh_args to nix copy and nix build SSH invocations
...
This is necessary for --post-kexec-ssh-port to be useful in situations involving port forwarding, such as when running on qemu
2023-08-05 07:48:36 +00:00
lassulus
a72a4e5bee
put key information into builder info to avoid long filenames
2023-07-31 13:49:36 +02:00
lassulus
581053b2c4
add --vm-test mode for local vm tests
...
Update src/nixos-anywhere.sh
2023-07-21 15:10:53 +02:00
Jörg Thalheim
a9e9b704a3
skip zpool command if we don't have it installed
...
for example not all installer will have it.
2023-07-18 15:29:58 +02:00
mergify[bot]
f0b9ecd941
Merge branch 'main' into zfs_export
2023-07-18 12:30:40 +00:00
Domen Kožar
8a381b97ca
kexec is a path
2023-07-18 12:41:36 +01:00
lassulus
aaef92aef9
export zfs pool after installation
2023-07-15 16:01:38 +02:00
Jörg Thalheim
cf1f2eda0f
add comment why we pin nix
2023-07-14 13:04:57 +02:00
zimbatm
98640b4b21
fix blocking nix-copy-closure
...
Pin nix to a version that has a working nix-copy-closure.
See https://github.com/NixOS/nix/issues/8480
2023-07-13 23:33:45 +02:00
Neal Fennimore
024bad7cc6
Add in ssh port option
2023-07-12 22:02:20 +02:00
ajs124
eb1997c054
move kexec check into kexec codepath
...
without this, the check gets run and fails even if no kexec will be done
e.g. when an installer is booted
2023-07-12 18:43:02 +00:00
Jacek Galowicz
70909def0c
Add -t param to nixos-anywhere to enable for prompts during installation
2023-06-13 20:16:34 +02:00
Ilan Joselevich
7ba548dc78
treewide: 22.11 -> 23.05
2023-06-11 14:08:38 +03:00
Jörg Thalheim
ff8fbfb657
Merge pull request #135 from numtide/non-nixos-quirk
...
add workaround when running in non-nixos environments
2023-06-07 19:38:33 +01:00
Jörg Thalheim
f44ce5b7b8
add workaround when running in non-nixos environments
2023-06-07 16:52:30 +02:00
Jörg Thalheim
8d16137f62
Merge pull request #134 from numtide/readme-update
...
README: SrvOS is not its own distribution yet
2023-06-07 08:23:55 +02:00
Jörg Thalheim
a75b9c5163
add missing gawk
2023-06-07 08:18:24 +02:00
Jörg Thalheim
d4fbe4c173
print error message to stderr if ssh-keyscan fails
2023-06-07 07:36:34 +02:00
Jörg Thalheim
c5fc538880
extract correct hostname from ssh settings
2023-06-07 07:36:34 +02:00
bors[bot]
8aa9b49229
Merge #132
...
132: make usage formatting more consistent r=Mic92 a=Mic92
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-06-07 05:16:23 +00:00
Jörg Thalheim
69443d6929
make usage formatting more consistent
2023-06-07 07:15:31 +02:00
bors[bot]
c532c9314e
Merge #129
...
129: Create ~/.ssh folder and add .direnv to gitignore r=Mic92 a=Melkor333
Co-authored-by: Samuel Hierholzer (Adfinis AG) <samuel.hierholzer@adfinis.com>
2023-06-07 04:52:47 +00:00
Jörg Thalheim
f3d4bec0df
fix ssh-keyscan for non-standard ssh ports
2023-06-07 00:44:35 +02:00
Samuel Hierholzer (Adfinis AG)
a102f30bc8
fix: create ~/.ssh folder as required by ssh-copy-id
2023-06-06 08:15:18 +02:00
Paul Haerle
33b11cf0ee
fix: .disko -> .diskoScript
...
...to avoid a deprecation warning from disko
2023-06-01 20:37:28 +02:00
Pogobanane
bdfbbd572a
fix rsync changing permissions
2023-05-15 16:28:54 +02:00
zimbatm
8428ae7c52
add -i to allow passing private key files
...
Mirror the `-i` option from SSH, so you can run `nixos-anywhere ~/.ssh/other_key`.
This commit also fixes an issue where the generated key-pair would stay
around when using the SSH_PRIVATE_KEY env var.
2023-05-14 16:08:29 +02:00
bors[bot]
c196258445
Merge #100
...
100: print the various steps r=zimbatm a=zimbatm
Co-authored-by: zimbatm <zimbatm@zimbatm.com>
2023-05-10 15:59:33 +00:00
zimbatm
8e4a684ff5
src/nixos-anywhere.sh: add shebang
...
It's not strictly needed because Nix wraps it with
writeShellApplication, but it makes it easier for the script to be
standalone and use the right syntax highlighter in shells.
Invoke it with bash in the README because of the Nix build sandbox
missing /usr/bin/env
2023-05-10 17:08:17 +02:00
zimbatm
099790802d
print the various steps
...
Let the user know what is happening by printing the high-level steps
in the console.
2023-05-10 11:31:14 +02:00
Jörg Thalheim
848a9cd4fc
switch to non-interactive installer
...
Massive size decrease: 820 MB -> 321 MB
2023-05-07 22:40:16 +02:00
Jörg Thalheim
9c6964bdbc
bash is no longer required
...
since nixos-images upgraded: https://github.com/nix-community/nixos-images/pull/98
2023-05-07 15:58:30 +02:00
Raito Bezarius
33ab44a23d
feat: detect bash & setsid presence and fail if they are not on the target
...
In #88 , I stumbled on this trying to install an OpenWRT target.
This is a band-aid for helpful errors and avoiding "half broken" states.
In an upcoming PR, I will suggest a solution which will produce static
binaries for what is needed and use them on the host.
2023-05-03 18:07:48 +02:00
lassulus
af10a53ab3
build-on-remote: fix check for store_paths
2023-04-27 12:30:11 +02:00
lassulus
dc27d00293
add --build-on-remote flag
2023-04-25 15:49:24 +02:00
Jörg Thalheim
5be3e00d57
wait for machine to be shutdown after deploy
2023-03-04 17:13:54 +01:00
bors[bot]
ff743f3183
Merge #72
...
72: Terraform module fixes r=Mic92 a=Mic92
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-02-24 11:47:28 +00:00
Jörg Thalheim
dfd9b256b1
quote flake attr to allow dots in nixos hostname
2023-02-24 08:28:30 +01:00
Jörg Thalheim
bedcb063cc
fixup ssh key name for rsync
2023-02-22 16:42:55 +01:00
lassulus
9e00da86f5
add newline to ssh key provided via env
2023-02-14 07:34:24 +01:00
bors[bot]
5b6fd8fd5a
Merge #68
...
68: Rsync permissions r=Mic92 a=Mic92
Co-authored-by: Pogobanane <aenderboy@gmx.de>
2023-02-09 09:40:02 +00:00
Pogobanane
1d9ba4c702
nixos-remote-pxe: fix mkdir -p not setting permissions if folder already exists
2023-02-09 10:34:50 +01:00
Pogobanane
c1ebc5f57a
nixos-remote: use installed ssh key also for rsync
2023-02-09 10:32:44 +01:00
Jörg Thalheim
53951b7424
prefer system's openssh
...
fixes https://github.com/numtide/nixos-anywhere/issues/62
2023-02-07 09:21:54 +01:00
Jörg Thalheim
c3326a417f
rename nixos-remote to nixos-anywhere
2023-02-01 19:52:43 +01:00
Jörg Thalheim
a67d3ac253
consistently print to stderr
2023-01-24 16:42:09 +01:00