mirror of
https://git.kb-one.de/kb01/aux-config.git
synced 2025-12-06 02:30:50 +00:00
Organized Properties, Added HW Token support
Some checks failed
/ Check Nix Flake (push) Has been cancelled
Some checks failed
/ Check Nix Flake (push) Has been cancelled
This commit is contained in:
parent
1e517b499c
commit
e0bead4ced
|
|
@ -5,38 +5,57 @@
|
|||
(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.initrd.luks.devices."cryptroot".device = "/dev/disk/by-label/NIXOS_LUKS";
|
||||
boot.initrd.luks.devices."cryptroot".crypttabExtraOpts = [ "fido2-device=auto" ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.kernelParams = [ "i915.force_probe=27ae" ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/NIXOS_ROOT";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
# 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;
|
||||
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "i686-linux";
|
||||
# networking.enableIntel3945ABGFirmware = true;
|
||||
hardware.graphics.extraPackages = [ pkgs.intel-vaapi-driver ];
|
||||
hardware.graphics.extraPackages32 = [ pkgs.intel-vaapi-driver ];
|
||||
# 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue