2023-07-25 11:40:05 +02:00
|
|
|
{ config, pkgs, ... }:
|
2023-07-31 14:18:02 +02:00
|
|
|
{
|
2023-07-25 11:40:05 +02:00
|
|
|
# [HARDWARE]
|
|
|
|
imports =
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
2023-08-25 14:10:48 +02:00
|
|
|
extraPackages = with pkgs; [
|
|
|
|
intel-ocl
|
|
|
|
intel-compute-runtime
|
|
|
|
intel-media-driver
|
|
|
|
vaapiIntel
|
|
|
|
vaapiVdpau
|
|
|
|
libvdpau-va-gl
|
|
|
|
];
|
2023-07-25 11:40:05 +02:00
|
|
|
};
|
2023-07-31 14:18:02 +02:00
|
|
|
hardware.bluetooth.enable = true;
|
2023-07-25 11:40:05 +02:00
|
|
|
services.logind = {
|
|
|
|
lidSwitch = "hibernate";
|
|
|
|
lidSwitchDocked = "ignore";
|
|
|
|
lidSwitchExternalPower = "hibernate";
|
|
|
|
};
|
2023-12-14 16:10:58 +01:00
|
|
|
services.udev.extraRules = ''
|
|
|
|
KERNEL=="0000:00:14.0", SUBSYSTEM=="pci", ATTR{power/wakeup}="disabled"
|
|
|
|
'';
|
2023-07-25 11:40:05 +02:00
|
|
|
|
|
|
|
# [BOOT / DISK ENCRYPTION]
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.loader.grub = {
|
|
|
|
enable = true;
|
|
|
|
device = "nodev";
|
|
|
|
efiSupport = true;
|
|
|
|
enableCryptodisk = true;
|
2023-08-01 15:37:40 +02:00
|
|
|
theme = ../shared/sayonara;
|
2023-07-31 14:40:59 +02:00
|
|
|
};
|
|
|
|
|
2023-07-25 11:40:05 +02:00
|
|
|
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
|
|
|
boot.initrd = {
|
|
|
|
availableKernelModules = [ "aesni_intel" "cryptd" ];
|
|
|
|
secrets = { "/boot/key" = "/boot/key"; };
|
|
|
|
luks.mitigateDMAAttacks = true;
|
|
|
|
luks.devices = {
|
|
|
|
root = {
|
|
|
|
device = "/dev/disk/by-uuid/91114176-b6cc-4454-89df-e2bf5c1fac0a";
|
|
|
|
keyFile = "/boot/key";
|
|
|
|
preLVM = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# [NETWORKING]
|
|
|
|
networking.hostName = "lambda";
|
|
|
|
networking.networkmanager = {
|
|
|
|
enable = true;
|
|
|
|
wifi.powersave = true;
|
|
|
|
wifi.scanRandMacAddress = true;
|
|
|
|
wifi.macAddress = "random";
|
|
|
|
};
|
|
|
|
|
2024-06-04 00:26:34 +02:00
|
|
|
system.stateVersion = "24.05";
|
2023-07-25 11:40:05 +02:00
|
|
|
}
|