Jörg Thalheim
f931e0db1f
update default nixos kexec image to 24.05
2024-06-07 13:12:36 +00:00
Jörg Thalheim
d2911784c3
add nixos test fro build-on-remote
2024-01-01 01:05:57 +00:00
Jörg Thalheim
3a87ed3cb0
use stable suffix for the last nixos release ( #262 )
...
flake.lock: Update
Flake lock file updates:
• Updated input 'disko':
'github:nix-community/disko/944d338d24a9d043a3f7461c30ee6cfe4f9cca30' (2023-10-27)
→ 'github:nix-community/disko/1144887c6f4d2dcbb2316a24364ef53e25b0fcfe' (2023-12-06)
• Updated input 'flake-parts':
'github:hercules-ci/flake-parts/8c9fa2545007b49a5db5f650ae91f227672c3877' (2023-11-01)
→ 'github:hercules-ci/flake-parts/34fed993f1674c8d06d58b37ce1e0fe5eebcb9f5' (2023-12-01)
• Removed input 'nixos-2305'
• Updated input 'nixos-images':
'github:nix-community/nixos-images/87bccdbdfbeb07e0c4fb4c2ec3d71986e8fa24d9' (2023-10-17)
→ 'github:nix-community/nixos-images/d655cc02fcb9ecdcca4f3fb307e291a4b5be1339' (2023-12-12)
• Removed input 'nixos-images/nixos-2305'
• Added input 'nixos-images/nixos-2311':
follows 'nixos-stable'
• Added input 'nixos-stable':
'github:NixOS/nixpkgs/cf28ee258fd5f9a52de6b9865cdb93a1f96d09b7' (2023-12-12)
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/2542afeb0d81db4d1e5bc8df8354cbdcc29c2f53' (2023-11-17)
→ 'github:nixos/nixpkgs/120a26f8ce32ac2bdc0e49a9fed830b7446416b4' (2023-12-11)
• Updated input 'treefmt-nix':
'github:numtide/treefmt-nix/5deb8dc125a9f83b65ca86cf0c8167c46593e0b1' (2023-10-27)
→ 'github:numtide/treefmt-nix/5ff2cdbe0db6a6f3445f7d878cb87d121d914d83' (2023-12-11)
flake.lock: Update
Flake lock file updates:
• Removed input 'nixos-2311'
• Updated input 'nixos-images':
'github:nix-community/nixos-images/b7719bef5d25f99297bc98c70db78d95e9eb2f71' (2023-12-10)
→ 'github:nix-community/nixos-images/d655cc02fcb9ecdcca4f3fb307e291a4b5be1339' (2023-12-12)
• Updated input 'nixos-images/nixos-2311':
follows 'nixos-2311'
→ follows 'nixos-stable'
• Added input 'nixos-stable':
'github:NixOS/nixpkgs/781e2a9797ecf0f146e81425c822dca69fe4a348' (2023-12-10)
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/82787a00628b1c5cabd0d43a657c6304b8451620' (2023-12-09)
→ 'github:nixos/nixpkgs/120a26f8ce32ac2bdc0e49a9fed830b7446416b4' (2023-12-11)
• Updated input 'treefmt-nix':
'github:numtide/treefmt-nix/afdd5e48a0869b389027307652a658051c0d2f96' (2023-12-10)
→ 'github:numtide/treefmt-nix/390018a9398f9763bfc05ffe6443ce0622cb9ba6' (2023-12-12)
2023-12-12 15:27:17 +01:00
Paul Haerle
1dc6b529e6
nixos 23.05 -> 23.11 ( #261 )
2023-12-12 11:21:01 +01:00
Jörg Thalheim
73a6d3fef4
installer: drop unused args
2023-11-28 14:50:34 +00:00
Ivan Trubach
ffcbf8c326
check that host key is copied in tests
2023-10-04 17:40:24 +00:00
Jörg Thalheim
cea6d40cbd
also test --copy-host-keys option
2023-10-04 17:40:24 +00:00
Ilan Joselevich
7ba548dc78
treewide: 22.11 -> 23.05
2023-06-11 14:08:38 +03:00
lassulus
764e9fe606
tests installer: cache correct disko output
2023-06-02 14:33:20 +02:00
Jörg Thalheim
85f36e3b0d
also test nixos-22.11
2023-05-15 14:03:10 +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
Jörg Thalheim
ba0c21ac64
tests/lib/test-base: also use non-interactive installer url
2023-05-14 15:39:57 +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
f76de710e7
tests/from-nixos: fix powering machine after nixos upgrade
2023-05-07 21:54:55 +02:00
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