From 97c0caa4b6adb163771aabb3ab6300f77d7e602d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 12 Apr 2024 15:19:20 +0200 Subject: [PATCH 1/2] fix installer --- nixosModules/installer/default.nix | 46 ------------------------------ 1 file changed, 46 deletions(-) diff --git a/nixosModules/installer/default.nix b/nixosModules/installer/default.nix index 6e161dbb..0fb0e569 100644 --- a/nixosModules/installer/default.nix +++ b/nixosModules/installer/default.nix @@ -64,50 +64,4 @@ cat /var/shared/qrcode.utf8 fi ''; - - # boot.loader.systemd-boot.enable = true; - - # Grub doesn't find devices for both BIOS and UEFI? - # Mic92: Please write where this exactly breaks if you want to comment out grub again. - # NOTE: We need grub here. Otherwise, the system won't boot in some machines. - # example: Lenovo E495 didn't boot without grub. - boot.loader.grub.efiInstallAsRemovable = true; - boot.loader.grub.efiSupport = true; - - disko.devices = { - disk = { - stick = { - type = "disk"; - device = "/vda"; - imageSize = "3G"; - content = { - type = "gpt"; - partitions = { - boot = { - priority = 1; - size = "1M"; - type = "EF02"; # for grub MBR - }; - ESP = { - size = "100M"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - }; - root = { - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - }; - }; - }; - }; - }; - }; - }; } -- 2.45.2 From 860167de70629f5f74b4ae8b91797e1d23cad8c3 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Fri, 12 Apr 2024 15:54:04 +0200 Subject: [PATCH 2/2] installer: add zstd compression --- nixosModules/installer/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixosModules/installer/default.nix b/nixosModules/installer/default.nix index 0fb0e569..97fc385f 100644 --- a/nixosModules/installer/default.nix +++ b/nixosModules/installer/default.nix @@ -16,6 +16,7 @@ (modulesPath + "/profiles/installation-device.nix") (modulesPath + "/profiles/all-hardware.nix") (modulesPath + "/profiles/base.nix") + (modulesPath + "/installer/cd-dvd/iso-image.nix") ]; services.openssh.settings.PermitRootLogin = "yes"; system.activationScripts.root-password = '' @@ -64,4 +65,5 @@ cat /var/shared/qrcode.utf8 fi ''; + isoImage.squashfsCompression = "zstd"; } -- 2.45.2