Skip to content

Commit 0ddfa62

Browse files
committed
[nixos] WIP
1 parent f4b09e7 commit 0ddfa62

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

from_scratch/nixos-base.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,28 @@ global:
1515
iso_location: releases
1616

1717
iso_filename: nixos-minimal-$${release}.$${release_minor_and_hash}-$${arch}-linux.iso
18-
iso_url: http://nixos.org/$${iso_location}/nixos/$${release}-small/nixos-$${release}.$${release_minor_and_hash}/$${iso_filename}
18+
#iso_url: http://nixos.org/$${iso_location}/nixos/$${release}-small/nixos-$${release}.$${release_minor_and_hash}/$${iso_filename}
19+
iso_url: file:///home/neyron/scm/OAR/kameleon-recipes/build/$${iso_filename}
1920
iso_path: $${kameleon_cwd}/$${distrib}.iso
2021

21-
image_format: raw
2222
qemu_sendkeys_commands: $${kameleon_data_dir}/qemu-sendkeys/netinst-iso-$${distrib}
23+
qemu_memory_size: 2048
2324

24-
autoinstall_script_path: $${kameleon_data_dir}/$${distrib}-autoinstall.sh
25+
autoinstall_script_path: $${kameleon_data_dir}/nixos/$${distrib}-autoinstall.sh
2526
root_password: root
2627
# wait for a full boot before run autoinstall script
2728
boot_timeout: 20
2829

2930
# override this configuration by adding yours to this folder
3031
# ./step/data/configuration.nix
31-
nix_hardware_configuration: $${kameleon_data_dir}/hardware-configuration.nix
32-
nix_configuration: $${kameleon_data_dir}/configuration.nix
32+
nix_hardware_configuration: $${kameleon_data_dir}/nixos/hardware-configuration.nix
33+
nix_configuration: $${kameleon_data_dir}/nixos/configuration.nix
3334

3435
bootstrap:
3536
- enable_checkpoint
3637
- download_iso
3738
- prepare_disk
39+
- prepare_ssh_to_out_context
3840
- prepare_autoinstall
3941
- start_http_server
4042
- start_qemu:
@@ -46,6 +48,7 @@ bootstrap:
4648

4749
setup:
4850
- "@base"
51+
- breakpoint
4952

5053
export:
5154
- "@base"
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
curl -sSL http://%LOCAL_IP%:%HTTP_PORT%/configuration.nix <gt> /tmp/configuration.nix<kp_enter>curl -sSL http://%LOCAL_IP%:%HTTP_PORT%/hardware-configuration.nix <gt> /tmp/hardware-configuration.nix <kp_enter>curl -sSL http://%LOCAL_IP%:%HTTP_PORT%/autoinstall.sh | sudo bash<kp_enter>
2-
1+
sudo -i<kp_enter>cd /etc/pam.d/<kp_enter>sed -i -e 's/^\(account.\+pam_unix\.so.\*\)$/\1 nullok/' sshd > sshd.new<kp_enter>rm sshd<kp_enter>mv sshd.new sshd<kp_enter>systemctl start sshd<kp_enter>

0 commit comments

Comments
 (0)