Testing with default options provided by generate.
This commit is contained in:
parent
26f5acac25
commit
8be8c69421
1 changed files with 17 additions and 14 deletions
|
|
@ -35,26 +35,28 @@
|
||||||
growPartition = true;
|
growPartition = true;
|
||||||
kernelParams = [ "console=ttyS0" ];
|
kernelParams = [ "console=ttyS0" ];
|
||||||
initrd = {
|
initrd = {
|
||||||
availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_blk" "uas"];
|
availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_blk" ];
|
||||||
kernelModules = [ ];
|
kernelModules = [ "kvm-amd" ];
|
||||||
};
|
};
|
||||||
kernelModules = [ "kvm-amd" ];
|
|
||||||
extraModulePackages = [ ];
|
extraModulePackages = [ ];
|
||||||
#loader.grub = {
|
# loader = {
|
||||||
# device = lib.mkDefault (if (hasNoFsPartition || supportBios) then
|
#systemd-boot.enable = true;
|
||||||
|
#grub = {
|
||||||
|
# device = {
|
||||||
# Even if there is a separate no-fs partition ("/dev/disk/by-partlabel/no-fs" i.e. "/dev/vda2"),
|
# Even if there is a separate no-fs partition ("/dev/disk/by-partlabel/no-fs" i.e. "/dev/vda2"),
|
||||||
# which will be used the bootloader, do not set it as loader.grub.device.
|
# which will be used the bootloader, do not set it as loader.grub.device.
|
||||||
# GRUB installation fails, unless the whole disk is selected.
|
# GRUB installation fails, unless the whole disk is selected.
|
||||||
# "/dev/disk/by-uuid/40fe3178-6ec1-450f-93fd-c359f2f3daf9"
|
# "/dev/disk/by-uuid/40fe3178-6ec1-450f-93fd-c359f2f3daf9"
|
||||||
# else
|
# };
|
||||||
# "nodev");
|
# timeout = 0;
|
||||||
#};
|
# };
|
||||||
loader = {
|
};
|
||||||
systemd-boot.enable = true;
|
fileSystems."/" = {
|
||||||
timeout = 0;
|
device = "/dev/disk/by-uuid/40fe3178-6ec1-450f-93fd-c359f2f3daf9";
|
||||||
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
# fileSystems."/" = {
|
# fileSystems."/" = {
|
||||||
# device = "/dev/disk/by-label/nixos";
|
# device = "/dev/disk/by-label/nixos";
|
||||||
# autoResize = true;
|
# autoResize = true;
|
||||||
|
|
@ -64,6 +66,7 @@
|
||||||
# device = "/dev/disk/by-label/ESP";
|
# device = "/dev/disk/by-label/ESP";
|
||||||
# fsType = "vfat";
|
# fsType = "vfat";
|
||||||
# };
|
# };
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
services.qemuGuest.enable = lib.mkDefault true;
|
services.qemuGuest.enable = lib.mkDefault true;
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue