summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--node/backup.jras.nl/default.nix9
-rw-r--r--node/backup.jras.nl/disk-config.nix11
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 = {