Commit Graph

19 Commits

Author SHA1 Message Date
Jörg Thalheim
1ba300c246 tests: fix disco config 2023-05-07 20:20:57 +02:00
lassulus
1b976d803c tests: fix running tests directly with nix-build 2023-02-14 07:34:24 +01:00
Jörg Thalheim
c3326a417f
rename nixos-remote to nixos-anywhere 2023-02-01 19:52:43 +01:00
lassulus
5943ffaf46 nixos-remote.sh: generate temporary ssh-key
we use this so the code has less branches for different ssh-key usecases
2023-01-24 16:42:09 +01:00
Ilan Joselevich
e2d1a946b1 treewide: add formatting via treefmt 2023-01-12 04:40:53 +02:00
Ilan Joselevich
f18629c159
nix: refactor and start using flake-parts 2023-01-11 00:55:53 +02:00
Ilan Joselevich
52e7ab3910
Use writeShellApplication for packaging 2023-01-10 23:05:47 +02:00
phaer
d57dc3d750 allow pipes for --disk-encryption-keys...
this allows passing multiple disk encryption keys, some of which
might come in the form of unix pipes.

It can be used with bash file substition facilities to pass a secret
to the remote machine without writing it locally to disk.

Example

--disk-encryption-keys /tmp/disk-1.key <(echo "my-secret")
--disk-encryption-keys /tmp/disk-2.key /tmp/static-file.key
2023-01-04 20:02:23 +01:00
Jörg Thalheim
96f2125082 tests: simplify ssh keys by not using ssh-agent 2023-01-04 09:31:50 +01:00
Jörg Thalheim
7598e1a03c unique test names 2022-12-31 14:05:36 +01:00
Jörg Thalheim
1d00a9babd test --disk-encryption-keys in sudo test 2022-12-31 14:05:36 +01:00
Jörg Thalheim
69353c0b59 fix sudo support and add test 2022-12-30 19:39:20 +01:00
Jörg Thalheim
74741d593d test: don't wait for installed sshd
nixos-remote should handle this itself already.
2022-12-30 19:29:47 +01:00
Jörg Thalheim
b0d9b17dc0 modularized nixos tests using new nixos test interface 2022-12-30 19:29:47 +01:00
lassulus
78433074aa allow direct building of test 2022-12-24 21:27:07 +01:00
Jörg Thalheim
b5c78ab85a nixos-test: enable --debug option 2022-12-23 20:37:49 +01:00
Jörg Thalheim
fd5dd53a51 add --extra-files option 2022-12-23 20:37:49 +01:00
Jörg Thalheim
a13702601a nixos-test: use evaluated kexec image 2022-12-23 11:22:23 +01:00
lassulus
5ff6a4fe33 add initial tests 2022-12-09 14:04:16 +01:00