nixos-config/lambda/configuration.nix

63 lines
1.4 KiB
Nix
Raw Normal View History

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";
};
# [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";
};
2023-12-01 17:00:30 +01:00
system.stateVersion = "23.11";
2023-07-25 11:40:05 +02:00
}