Archived
updated to efi boot
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user