Refactor config to merge modules from platforms

This commit is contained in:
Kiana Sheibani 2023-01-03 21:17:49 -05:00
parent a3eecd7007
commit 0c4ce3e936
32 changed files with 95 additions and 116 deletions

10
config/battery.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, lib, ... }:
lib.mkIf (config.custom.platform == "laptop") {
services.upower = {
enable = true;
usePercentageForPolicy = true;
percentageLow = 15;
percentageCritical = 5;
};
}