Files
nixos/dendritic-nixos-main/modules/system/power-management.nix
T
2026-03-21 20:01:50 +00:00

19 lines
502 B
Nix

{ ... }:
{
# Push the configuration into the Flake's module pool
flake.nixosModules.bluetooth = { config, lib, pkgs, ... }:
let
cfg = config.mySystem.system.power-management;
in {
# 1. Define the custom toggle
options.mySystem.system.power-management.enable = lib.mkEnableOption "Power Management/Profiles";
# 2. Apply the configuration
config = lib.mkIf cfg.enable {
services.upower.enable = true;
services.power-profiles-daemon.enable = true;
};
};
}