2023-02-11 04:58:34 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
modulesPath,
|
|
|
|
...
|
2023-08-25 23:45:22 +02:00
|
|
|
}: {
|
2023-02-11 04:58:34 +01:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
|
|
|
|
2023-05-20 08:27:25 +02:00
|
|
|
boot = {
|
|
|
|
initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "sd_mod"];
|
|
|
|
initrd.kernelModules = ["dm-snapshot"];
|
2023-08-25 23:45:22 +02:00
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
2023-05-20 08:27:25 +02:00
|
|
|
kernelModules = ["kvm-amd" "v4l2loopback"];
|
|
|
|
kernelParams = ["quiet" "splash"];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Intel Arc A770
|
|
|
|
environment.sessionVariables.LIBVA_DRIVER_NAME = "iHD";
|
2023-08-25 23:45:22 +02:00
|
|
|
boot.extraModulePackages = [config.boot.kernelPackages.v4l2loopback];
|
2023-05-20 08:27:25 +02:00
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
2023-05-26 21:59:31 +02:00
|
|
|
driSupport32Bit = true;
|
2023-05-20 08:27:25 +02:00
|
|
|
extraPackages = with pkgs; [
|
2023-06-08 22:55:45 +02:00
|
|
|
intel-compute-runtime
|
2023-05-20 08:27:25 +02:00
|
|
|
intel-media-driver
|
2023-06-08 22:55:45 +02:00
|
|
|
libvdpau-va-gl
|
2023-05-20 08:27:25 +02:00
|
|
|
vaapiIntel
|
|
|
|
vaapiVdpau
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
2023-02-11 04:58:34 +01:00
|
|
|
|
|
|
|
fileSystems."/" = {
|
2024-02-11 16:54:31 +01:00
|
|
|
device = "/dev/disk/by-uuid/018963d2-463f-451d-a54c-dc6f29f24daa";
|
|
|
|
fsType = "ext4";
|
2023-02-11 04:58:34 +01:00
|
|
|
};
|
|
|
|
|
2024-02-11 16:54:31 +01:00
|
|
|
boot.initrd.luks.devices."luks-b8839f86-af3a-4cb7-a906-108ece087aa0".device = "/dev/disk/by-uuid/b8839f86-af3a-4cb7-a906-108ece087aa0";
|
2023-02-11 04:58:34 +01:00
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
2024-02-11 16:54:31 +01:00
|
|
|
device = "/dev/disk/by-uuid/1D0D-B170";
|
2023-02-11 04:58:34 +01:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
|
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
|
|
# still possible to use this option, but it's recommended to use it in conjunction
|
|
|
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
# networking.interfaces.enp37s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|