From 3a6b6cfdb7c758bdb9ba6d2d2dd03439aa9c369b Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Sun, 15 Sep 2024 02:46:56 +0200 Subject: [PATCH] flake: Make openstack-image EFI --- flake.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 6407a2a..3eb3b85 100644 --- a/flake.nix +++ b/flake.nix @@ -160,9 +160,11 @@ ({config, lib, pkgs, modulesPath, ... }: { system.build.openstackImage = lib.mkForce (import "${modulesPath}/../lib/make-disk-image.nix" { inherit config lib pkgs; - copyChannel = true; additionalSpace = "1024M"; + copyChannel = true; + diskSize = "auto"; format = "raw"; + partitionTableType = "efi"; configFile = pkgs.writeText "configuration.nix" '' { @@ -170,6 +172,16 @@ } ''; }); + boot.loader.grub = lib.mkForce { + device = "nodev"; + efiSupport = true; + efiInstallAsRemovable = true; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-label/ESP"; + fsType = "vfat"; + }; }) ]; };