nix-dotfiles/modules/core/default.nix
2026-06-07 23:15:03 -07:00

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;
})
];
}