18 lines
372 B
Nix
18 lines
372 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.core;
|
|
in {
|
|
options.modules.core = {
|
|
laptop = mkEnableOption "Enable laptop specific tweaks";
|
|
};
|
|
|
|
config = mkMerge [
|
|
(mkIf cfg.laptop {
|
|
# services that help w/ battery saving
|
|
powerManagement.powertop.enable = true;
|
|
services.power-profiles-daemon.enable = true;
|
|
})
|
|
];
|
|
}
|