Skip to content

Commit 848a9cd

Browse files
committed
switch to non-interactive installer
Massive size decrease: 820 MB -> 321 MB
1 parent 23ec5bc commit 848a9cd

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ than uploaded prior to executing.
9090
9191
```shell
9292
nixos-anywhere \
93-
--kexec "$(nix build --print-out-paths github:nix-community/nixos-images#packages.x86_64-linux.kexec-installer-nixos-unstable)/nixos-kexec-installer-x86_64-linux.tar.gz" \
93+
--kexec "$(nix build --print-out-paths github:nix-community/nixos-images#packages.x86_64-linux.kexec-installer-noninteractive-nixos-unstable)/nixos-kexec-installer-noninteractive-x86_64-linux.tar.gz" \
9494
--flake 'github:your-user/your-repo#your-system' \
9595
root@yourip
9696
```
@@ -101,7 +101,7 @@ for aarch64-linux either natively or through a remote builder
101101
102102
```shell
103103
nixos-anywhere \
104-
--kexec "$(nix build --print-out-paths github:nix-community/nixos-images#packages.aarch64-linux.kexec-installer-nixos-unstable)/nixos-kexec-installer-aarch64-linux.tar.gz" \
104+
--kexec "$(nix build --print-out-paths github:nix-community/nixos-images#packages.aarch64-linux.kexec-installer-noninteractive-nixos-unstable)/nixos-kexec-installer-noninteractive-aarch64-linux.tar.gz" \
105105
--flake 'your-flake#your-system' \
106106
root@yourip
107107
```

src/nixos-anywhere.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ abort() {
4040
exit 1
4141
}
4242

43-
default_kexec_url=https://github.com/nix-community/nixos-images/releases/download/nixos-22.11/nixos-kexec-installer-x86_64-linux.tar.gz
43+
default_kexec_url=https://github.com/nix-community/nixos-images/releases/download/nixos-22.11/nixos-kexec-installer-noninteractive-x86_64-linux.tar.gz
4444
kexec_url="$default_kexec_url"
4545
enable_debug=""
4646
maybe_reboot="sleep 6 && reboot"

tests/flake-module.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
inherit pkgs;
88
inherit (inputs.disko.nixosModules) disko;
99
nixos-anywhere = config.packages.nixos-anywhere;
10-
kexec-installer = "${inputs'.nixos-images.packages.kexec-installer-nixos-unstable}/nixos-kexec-installer-${system}.tar.gz";
10+
kexec-installer = "${inputs'.nixos-images.packages.kexec-installer-nixos-unstable-noninteractive}/nixos-kexec-installer-noninteractive-${system}.tar.gz";
1111
};
1212
in
1313
{

tests/from-nixos-with-sudo.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
installer = ./modules/installer.nix;
55
installed = {
66
services.openssh.enable = true;
7-
virtualisation.memorySize = 4096;
7+
virtualisation.memorySize = 1512;
88

99
users.users.nixos = {
1010
isNormalUser = true;

tests/from-nixos.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
installer = ./modules/installer.nix;
55
installed = {
66
services.openssh.enable = true;
7-
virtualisation.memorySize = 4096;
7+
virtualisation.memorySize = 1512;
88

99
users.users.root.openssh.authorizedKeys.keyFiles = [ ./modules/ssh-keys/ssh.pub ];
1010
};

0 commit comments

Comments
 (0)