nixos/machines/workman/hardware-configuration.nix
Felix Buehler 7909067dc7
Some checks are pending
/ Build Nix targets (push) Waiting to run
harware/graphics: add nvidia and rename to gpu
2026-04-12 16:01:41 +02:00

43 lines
946 B
Nix

{
pkgs,
...
}:
{
boot.kernelPackages = pkgs.linuxPackages_latest;
services.power-profiles-daemon.enable = true;
services.tlp.enable = false;
systemd.services.audio-off = {
description = "Mute audio before suspend";
wantedBy = [ "sleep.target" ];
serviceConfig = {
Type = "oneshot";
Environment = "XDG_RUNTIME_DIR=/run/user/1000";
User = "felix";
RemainAfterExit = "yes";
ExecStart = "${pkgs.pamixer}/bin/pamixer --mute";
};
};
my.hardware = {
action-on-low-power.enable = true;
bluetooth.enable = true;
debug.enable = true;
drive-monitor.enable = true;
firmware = {
enable = true;
cpuFlavor = "amd";
};
graphics = {
enable = true;
gpuFlavor = "amd";
};
id-card.enable = true;
keychron.enable = true;
monitor.enable = true;
sound.enable = true;
thunderbolt.enable = true;
yubikey.enable = true;
};
}