aux-config/systems/i686-linux/Rubtrm/hardware.nix
Kaybee e0bead4ced
Some checks failed
/ Check Nix Flake (push) Has been cancelled
Organized Properties, Added HW Token support
2025-10-30 18:40:23 +01:00

62 lines
1.7 KiB
Nix

{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
# Nix Config
nixpkgs.hostPlatform = lib.mkDefault "i686-linux";
# Kernel
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "usbhid" "usb_storage" "ums_realtek" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" "cryptd" ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
boot.kernelParams = [ "i915.force_probe=27ae" ];
# Boot Process
boot.loader.grub = {
enable = true;
copyKernels = true;
};
boot.initrd.systemd.enable = true;
#boot.plymouth.enable = true;
#boot.plymouth.logo = pkgs.fetchurl {
# url = "https://forum.auxolotl.org/uploads/default/original/1X/be37690f0748737fc813dd3592848f5323a7f277.png";
# hash = "sha256-+E7mAoEMnHsavKzEdTosli08Oohq+yt3WB4Uhwpi0Vg=";
#};
# Filesystems
fileSystems."/boot" = {
device = "/dev/disk/by-label/NIXOS_BOOT";
fsType = "vfat";
};
fileSystems."/" = {
device = "/dev/disk/by-label/NIXOS_ROOT";
fsType = "ext4";
};
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-label/NIXOS_LUKS";
boot.initrd.luks.devices."cryptroot".crypttabExtraOpts = [ "fido2-device=auto" ];
swapDevices = [
{
device = "/.swapfile";
}
];
# Misc
networking.useDHCP = lib.mkDefault true;
# Firmware
# intel-media-driver
# intel-vaapi-driver
# libva-vdpau-drivemesar
# libvdpau-va-gl
# mesa
hardware.graphics.extraPackages = [ pkgs.driversi686Linux.mesa ];
hardware.graphics.extraPackages32 = [ pkgs.driversi686Linux.mesa ];
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.enableAllFirmware = true;
}