2021-11-24 07:07:08 +00:00
|
|
|
# CFS Zen Tweaks
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.programs.cfs-zen-tweaks;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
meta = {
|
2024-04-17 12:37:58 +01:00
|
|
|
maintainers = with lib.maintainers; [ mkg20001 ];
|
2021-11-24 07:07:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
options = {
|
2024-04-17 12:37:58 +01:00
|
|
|
programs.cfs-zen-tweaks.enable = lib.mkEnableOption "CFS Zen Tweaks";
|
2021-11-24 07:07:08 +00:00
|
|
|
};
|
|
|
|
|
2024-04-17 12:37:58 +01:00
|
|
|
config = lib.mkIf cfg.enable {
|
2021-11-24 07:07:08 +00:00
|
|
|
systemd.packages = [ pkgs.cfs-zen-tweaks ];
|
|
|
|
|
2023-03-29 14:03:50 +01:00
|
|
|
systemd.services.set-cfs-tweaks.wantedBy = [
|
|
|
|
"multi-user.target"
|
|
|
|
"suspend.target"
|
|
|
|
"hibernate.target"
|
|
|
|
"hybrid-sleep.target"
|
|
|
|
"suspend-then-hibernate.target"
|
|
|
|
];
|
2021-11-24 07:07:08 +00:00
|
|
|
};
|
|
|
|
}
|