sid.ovh/hosts/vde/hardware.nix
sid 7d364cdfac
Some checks failed
Deploy configs / deploy-configs (push) Failing after 11s
initial commit
2026-02-23 20:53:29 +01:00

76 lines
1.7 KiB
Nix

{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-label/ROOT";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [
{ device = "/dev/disk/by-label/SWAP"; }
];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# vesa
# boot.kernelParams = [ "nomodeset" ];
# services.xserver.videoDrivers = [ "vesa" ];
# fbdev
boot.kernelParams = [ "nomodeset" ];
services.xserver.videoDrivers = [ "fbdev" ];
# nouveau
# hardware.graphics.enable = true;
# services.xserver.videoDrivers = [ "nouveau" ];
# modesetting
# services.xserver.videoDrivers = [ "modesetting" ];
# boot.kernelParams = [
# "video=1280x1024"
# "nouveau.modeset=1"
# "nouveau.noaccel=1"
# "nouveau.config=NvBios=0"
# ];
# proprietary drivers
# hardware.graphics.enable = true;
# services.xserver.videoDrivers = [ "nvidia" ];
# hardware.nvidia.open = false;
# hardware.nvidia.package = config.boot.kernelPackages.nvidia_x11_legacy340;
# nixpkgs.config.allowBroken = true;
# nixpkgs.config.allowUnfree = true;
# nixpkgs.config.nvidia.acceptLicense = true;
}