fixed btrfs support configs and swap
This commit is contained in:
@@ -1,33 +1,17 @@
|
||||
# Hardware profile for buildbox (QEMU/KVM VM).
|
||||
#
|
||||
# Filesystems, swap, and boot-related disk config are intentionally NOT
|
||||
# declared here — they are owned by disko via ./disko-config.nix, which
|
||||
# sets config.fileSystems / config.swapDevices / config.boot when
|
||||
# disko.enableConfig = true (the default). Keep this file limited to
|
||||
# kernel modules and platform settings that disko does not manage.
|
||||
#
|
||||
# This file is still regenerated by `nixos-anywhere --generate-hardware-config
|
||||
# nixos-generate-config ./hosts/buildbox/hardware-configuration.nix`, so any
|
||||
# hand-edits here may be overwritten on the next install. The disko-owned
|
||||
# filesystem entries below are stripped on purpose; do not re-add them.
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
imports =
|
||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "uas" "sd_mod"];
|
||||
boot.initrd.kernelModules = ["btrfs"];
|
||||
boot.kernelModules = [];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user