my over complex system configurations dotfiles.isabelroses.com/
nixos nix flake dotfiles linux
9
fork

Configure Feed

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

nixos/hardware/power: simplify

isabel 0a903ce8 dccbf62a

+5 -16
+5 -16
modules/nixos/hardware/power/tuned.nix
··· 1 + { config, ... }: 1 2 { 2 - lib, 3 - config, 4 - ... 5 - }: 6 - let 7 - inherit (lib) mkIf; 8 - in 9 - { 10 - config = mkIf config.garden.profiles.laptop.enable { 11 - services = { 12 - tuned = { 13 - enable = true; 3 + services.tuned = { 4 + inherit (config.garden.profiles.laptop) enable; 14 5 15 - # auto magically change the profile based on the battery charging state 16 - ppdSettings.main.battery_detection = true; 17 - }; 18 - }; 6 + # auto magically change the profile based on the battery charging state 7 + ppdSettings.main.battery_detection = true; 19 8 }; 20 9 }