updated to efi boot

This commit is contained in:
2026-07-18 07:52:30 +10:00
parent 4822f0b290
commit 8932e52d72
6 changed files with 193 additions and 8 deletions
+6
View File
@@ -0,0 +1,6 @@
{ ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}
+22 -6
View File
@@ -10,21 +10,37 @@
type = "gpt";
partitions = {
swap = {
esp = {
priority = 1;
size = "8G";
name = "ESP";
size = "512M";
type = "EF00";
content = {
type = "swap";
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
extraArgs = [
"-L"
"swap"
"-F"
"32"
"-n"
"boot"
];
};
};
swap = {
size = "8G";
content = {
type = "swap";
randomEncryption = false;
label = "swap";
};
};
root = {
priority = 2;
size = "100%";
content = {
@@ -10,9 +10,9 @@
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.loader.grub.device = "/dev/sda2"; # or "nodev" for efi only
# boot.loader.grub.device = "/dev/sda2"; # or "nodev" for efi only
# fileSystems."/" =
# { device = "/dev/disk/by-label/nixos";