2022-06-16 17:23:12 +00:00
|
|
|
# CFS Zen Tweaks
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.programs.cfs-zen-tweaks;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = with maintainers; [ mkg20001 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
options = {
|
2022-09-09 14:08:57 +00:00
|
|
|
programs.cfs-zen-tweaks.enable = mkEnableOption (lib.mdDoc "CFS Zen Tweaks");
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
systemd.packages = [ pkgs.cfs-zen-tweaks ];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
systemd.services.set-cfs-tweaks.wantedBy = [
|
|
|
|
"multi-user.target"
|
|
|
|
"suspend.target"
|
|
|
|
"hibernate.target"
|
|
|
|
"hybrid-sleep.target"
|
|
|
|
"suspend-then-hibernate.target"
|
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|