Files
nixos-config/hosts/laptop-mans/default.nix
Mans Ziesel da7c0282c6 Replace ppd waybar widget with cpufreq governor toggle
The Ryzen 7 3700U (Zen+) lacks CPPC, and the laptop exposes no ACPI
platform_profile, so power-profiles-daemon has no real backend and only
shows placeholder profiles. Swap the ppd widget for a custom waybar
module backed by a small `cpugov` helper that reads and toggles the
cpufreq governor directly. Left-click cycles schedutil <-> performance
via a NOPASSWD sudo rule scoped to the wrapper path.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 16:08:26 +02:00

27 lines
799 B
Nix

{ inputs, ... }:
{
imports = [
./hardware-configuration.nix
../../modules/system
inputs.nixos-hardware.nixosModules.common-cpu-amd
inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
inputs.nixos-hardware.nixosModules.common-gpu-amd
inputs.nixos-hardware.nixosModules.common-pc-laptop
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
];
networking.hostName = "laptop-mans";
custom.isLaptop = true;
# swap
boot.initrd.luks.devices."luks-8f14b604-c1ef-4a54-8cfa-56a201f3321f".device =
"/dev/disk/by-uuid/8f14b604-c1ef-4a54-8cfa-56a201f3321f";
# See https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion
# Pin this to the release used at install time and DO NOT change it on upgrades.
system.stateVersion = "26.05";
}