infrastructure/hosts/thalassa/aoife/hardware.nix
Vivian c4b08af314
Some checks failed
Lint / lint (push) Has been cancelled
updates
2024-10-26 09:49:22 +02:00

71 lines
1.3 KiB
Nix

{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
pciutils
usbutils
lshw
];
hardware = {
enableAllFirmware = true;
bluetooth.enable = true;
# OpenGL + Vulkan
graphics = {
enable = true;
extraPackages = with pkgs; [
amdvlk
mesa.drivers
];
};
};
services = {
fwupd.enable = true;
hardware.bolt.enable = true;
fprintd = {
enable = true;
# fprintd test suite fails
package = pkgs.fprintd.overrideAttrs {
mesonCheckFlags = [
"--no-suite"
"fprintd:TestPamFprintd"
];
};
};
# Video Driver
xserver = {
videoDrivers = [ "displaylink" ];
dpi = 280;
};
# SSD Trim
fstrim.enable = true;
# Power Management
upower.enable = true;
thermald.enable = true;
};
# hardware.trackpoint.enable = true;
# FS
fileSystems."/".options = [ "compress=zstd" ];
powerManagement = {
enable = true;
powertop.enable = true;
};
security = {
tpm2 = {
# tpm
enable = true;
pkcs11.enable = true; # expose /run/current-system/sw/lib/libtpm2_pkcs11.so
tctiEnvironment.enable = true;
};
}; # TPM2TOOLS_TCTI and TPM2_PKCS11_TCTI env variables
users.users.vivian.extraGroups = [ "tss" ]; # tss group has access to TPM devices
}