this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove cpupower on laptops (use TLP)

Ben C 39762dd3 6b588cb8

+27
+10
homeModules/waybar.nix
··· 522 522 modules-right = [ 523 523 "temperature" 524 524 "cpu" 525 + "power-profiles-daemon" 525 526 "memory" 526 527 ]; 527 528 position = "bottom"; ··· 540 541 format = "{icon}"; 541 542 icon-size = 35; 542 543 on-click = "activate"; 544 + }; 545 + power-profiles-daemon = { 546 + format = "{icon} {profile}"; 547 + format-icons = { 548 + default = "󰁹"; 549 + performance = "󰂄"; 550 + balanced = "󱠴"; 551 + power-saver = "󱟠"; 552 + }; 543 553 }; 544 554 } 545 555 ];
+17
nixosModules/role-laptop.nix
··· 6 6 options.cow.role-laptop = { 7 7 enable = lib.mkEnableOption "configuring a laptop with a GUI and bean setup for mobile use"; 8 8 fingerPrintSensor = lib.mkEnableOption "fprintd and persist prints"; 9 + powersave = 10 + (lib.mkEnableOption "power saving and battery health options with TLP") 11 + // { 12 + default = true; 13 + }; 9 14 }; 10 15 11 16 config = lib.mkIf config.cow.role-laptop.enable { ··· 36 41 }; 37 42 audio.enable = true; 38 43 imperm.keep = lib.optional config.cow.role-laptop.fingerPrintSensor "/var/lib/fprint"; 44 + }; 45 + 46 + # Set to null as TLP will manage the frequency governor for us 47 + powerManagement.cpuFreqGovernor = lib.mkIf config.cow.role-laptop.powersave ( 48 + if config.cow.audio.tweaks.enable 49 + then (lib.mkForce null) 50 + else null 51 + ); 52 + 53 + services.tlp = lib.mkIf config.cow.role-laptop.powersave { 54 + enable = true; 55 + pd.enable = true; 39 56 }; 40 57 41 58 services.fprintd = lib.mkIf config.cow.role-laptop.fingerPrintSensor {