Files
naxos-os/profiles/hardware-generic.nix
T
2026-09-04 07:29:57 +02:00

35 lines
784 B
Nix

{ config, pkgs, lib, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usb_storage"
"sd_mod"
"mpt3sas"
"virtio_pci"
"virtio_scsi"
"virtio_blk"
"virtio_net"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" "kvm-amd" ];
boot.extraModulePackages = [ ];
# Default filesystem layout for generic profile (can be overridden by hardware-configuration.nix)
fileSystems."/" = lib.mkDefault {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
# Dynamic DHCP on physical interfaces
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}