infrastructure/nixos/hosts/thalassa/aoife/hardware.nix

56 lines
1.1 KiB
Nix
Raw Normal View History

2022-12-12 16:28:54 +01:00
{ pkgs, ... }: {
2023-09-25 11:56:02 +02:00
hardware = {
enableAllFirmware = true;
bluetooth.enable = true;
# Vulkan
opengl.driSupport = true;
opengl.extraPackages = with pkgs; [
amdvlk
rocm-opencl-icd
rocm-opencl-runtime
];
};
services = {
hardware.bolt.enable = true;
2022-12-12 16:28:54 +01:00
2023-09-25 11:56:02 +02:00
fprintd.enable = true;
2022-12-12 16:28:54 +01:00
2023-09-25 11:56:02 +02:00
# Video Driver
xserver.videoDrivers = [ "amdgpu" ];
xserver = {
dpi = 280;
xkbOptions = "caps:swapescape";
};
2022-12-12 16:28:54 +01:00
2023-09-25 11:56:02 +02:00
# SSD Trim
fstrim.enable = true;
# Power Management
upower.enable = true;
thermald.enable = true;
};
2023-09-03 10:24:18 +02:00
2023-05-04 08:32:01 +02:00
# hardware.trackpoint.enable = true;
2023-05-03 12:58:47 +02:00
2023-04-25 09:01:06 +02:00
# FS
fileSystems."/".options = [ "compress=zstd" ];
2022-12-12 16:28:54 +01:00
powerManagement = {
enable = true;
powertop.enable = true;
};
2023-09-25 11:56:02 +02:00
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
2023-11-16 20:14:11 +01:00
users.users.vivian.extraGroups = [ "tss" ]; # tss group has access to TPM devices
2022-12-12 16:28:54 +01:00
}