mirror of
https://git.kb-one.de/kb01/aux-config.git
synced 2025-12-05 18:28:53 +00:00
63 lines
1.7 KiB
Nix
63 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=27a6" ];
|
|
|
|
|
|
# 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
|
|
# Test Device 2
|
|
#hardware.graphics.extraPackages = [ pkgs.driversi686Linux.mesa ];
|
|
#hardware.graphics.extraPackages32 = [ pkgs.driversi686Linux.mesa ];
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
hardware.enableAllFirmware = true;
|
|
}
|