Refactor config to merge modules from platforms
This commit is contained in:
parent
a3eecd7007
commit
0c4ce3e936
32 changed files with 95 additions and 116 deletions
10
config/battery.nix
Normal file
10
config/battery.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ config, lib, ... }:
|
||||
lib.mkIf (config.custom.platform == "laptop") {
|
||||
services.upower = {
|
||||
enable = true;
|
||||
|
||||
usePercentageForPolicy = true;
|
||||
percentageLow = 15;
|
||||
percentageCritical = 5;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue