{ povSelf, config, lib, ... }: let inherit (lib) types; cfg = lib.getAttrFromPath povSelf config; in { options.enable = { type = types.bool; default = false; }; config = lib.mkIf cfg.enable { modules.filesystem.impermanence.system.dirs = [ "/var/lib/power-profiles-daemon" ]; services.power-profiles-daemon.enable = true; }; }