Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: align nix raw image boot config

+10 -5
+10 -5
fedac/nixos/modules/image.nix
··· 6 6 boot.loader.efi.canTouchEfiVariables = lib.mkForce false; 7 7 boot.loader.grub = { 8 8 enable = true; 9 - device = "/dev/vda"; 9 + devices = [ "/dev/vda" ]; 10 10 efiSupport = true; 11 11 efiInstallAsRemovable = true; 12 12 configurationLimit = 1; 13 13 }; 14 14 boot.loader.timeout = lib.mkForce 0; 15 15 boot.loader.grub.timeoutStyle = lib.mkForce "hidden"; 16 + boot.growPartition = lib.mkDefault true; 16 17 17 18 # Make early boot text visible on the real display for debug + fallback boot paths. 18 19 boot.kernelParams = lib.mkAfter [ "console=tty0" ]; 19 20 20 - # Let make-disk-image perform a full NixOS install onto a raw disk image. 21 + # Match nixpkgs raw-disk expectations so the installed image can boot on 22 + # real hardware and expand cleanly after flashing. 21 23 fileSystems."/" = lib.mkForce { 22 - device = "/dev/vda"; 24 + device = "/dev/disk/by-label/nixos"; 23 25 fsType = "ext4"; 24 - autoFormat = true; 26 + autoResize = true; 27 + }; 28 + fileSystems."/boot" = lib.mkForce { 29 + device = "/dev/disk/by-label/ESP"; 30 + fsType = "vfat"; 25 31 }; 26 - virtualisation.useBootLoader = lib.mkForce true; 27 32 }