More boot defaults

This commit is contained in:
Joseph Hanson 2024-05-25 11:17:33 -05:00
parent a6dd9b6407
commit d24b956278
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 16 additions and 2 deletions

15
hardware/default.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, modulesPath, lib, ... }:
{
imports = [
"${modulesPath}/profiles/qemu-guest.nix"
];
config = {
boot.growPartition = true;
boot.loader.grub.device = "/dev/vda";
fileSystems."/" = lib.mkDefault { device = "/dev/vda1"; fsType = "ext4"; };
networking.useNetworkd = true;
};
}

View file

@ -1,11 +1,10 @@
{ config, modulesPath, lib, ... }: { config, modulesPath, lib, ... }:
{ {
imports = [ imports = [
"${modulesPath}/profiles/qemu-guest.nix" ./.
]; ];
config = { config = {
networking.useDHCP = true;
boot.initrd.availableKernelModules = [ "ahci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ]; boot.initrd.availableKernelModules = [ "ahci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ "virtio_gpu" ]; boot.initrd.kernelModules = [ "virtio_gpu" ];
boot.extraModulePackages = []; boot.extraModulePackages = [];