diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-03-26 15:20:45 +0100 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-03-26 15:20:45 +0100 |
commit | d6ea5216d603942b8c22025a4fd9501f575eac59 (patch) | |
tree | 2dea5f3ea6e753954062e0f7b3266c251e080195 | |
parent | 210ec2ded46759782fc66fd36a3e3145dcb783d9 (diff) |
Make backup.jras.nl boot on openstack
-rw-r--r-- | node/backup.jras.nl/default.nix | 9 | ||||
-rw-r--r-- | node/backup.jras.nl/disk-config.nix | 11 |
2 files changed, 14 insertions, 6 deletions
diff --git a/node/backup.jras.nl/default.nix b/node/backup.jras.nl/default.nix index 920c8b6..515a4db 100644 --- a/node/backup.jras.nl/default.nix +++ b/node/backup.jras.nl/default.nix @@ -1,6 +1,7 @@ -{ lib, ... }: +{ modulesPath, lib, ... }: { imports = [ + (modulesPath + "/profiles/qemu-guest.nix") ./disk-config.nix ]; @@ -8,8 +9,10 @@ home-manager.users.jras = { home.stateVersion = "24.11"; }; - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; + boot.loader.grub = { + efiSupport = true; + efiInstallAsRemovable = true; + }; time.timeZone = "Europe/Amsterdam"; diff --git a/node/backup.jras.nl/disk-config.nix b/node/backup.jras.nl/disk-config.nix index 8800806..c02a3b3 100644 --- a/node/backup.jras.nl/disk-config.nix +++ b/node/backup.jras.nl/disk-config.nix @@ -7,14 +7,19 @@ content = { type = "gpt"; partitions = { - ESP = { + boot = { + name = "boot"; + size = "1M"; + type = "EF02"; + }; + esp = { + name = "ESP"; + size = "500M"; type = "EF00"; - size = "1G"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; - mountOptions = [ "umask=0077" ]; }; }; zfs = { |