savarcast.r: add required kernel modules

This commit is contained in:
makefu 2023-09-04 10:50:02 +02:00
parent 6dd07def6a
commit 6c2e970b93
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
2 changed files with 6 additions and 5 deletions

View file

@ -49,6 +49,7 @@
# Network
networking = {
useDHCP = lib.mkDefault true;
firewall = {
allowedTCPPorts = [ 80 443 ];
allowPing = true;

View file

@ -1,17 +1,17 @@
{ pkgs, lib, nixos-hardware, self, ... }:
{ pkgs, modulesPath, lib, nixos-hardware, self, ... }:
# new zfs deployment
{
imports = [
((import ./disk-setup.nix ) { disks = [ "/dev/sda" "/dev/sdb"]; })
(modulesPath + "/profiles/qemu-guest.nix")
];
swapDevices = [ ];
boot.initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
boot.kernelPackages = lib.mkForce pkgs.linuxPackages;
hardware.enableRedistributableFirmware = true;
}