diff options
author | Maciej Krüger <mkg20001@gmail.com> | 2022-05-26 06:44:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-26 06:44:54 +0200 |
commit | 41e3072c81afd17c7f932289048346a2ef1d2c61 (patch) | |
tree | 62127d4f7f103da3ad2b0673f273e769c71d9513 /nixos/modules/programs | |
parent | 197f0d76f23482841febac8d5a7d110f085f91c2 (diff) | |
parent | 04d312589cc8a4daf74b565583379a873147247e (diff) |
Merge pull request #147232 from mkg20001/zen-tweaks
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/cfs-zen-tweaks.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixos/modules/programs/cfs-zen-tweaks.nix b/nixos/modules/programs/cfs-zen-tweaks.nix new file mode 100644 index 0000000000000..f168662bbefe7 --- /dev/null +++ b/nixos/modules/programs/cfs-zen-tweaks.nix @@ -0,0 +1,28 @@ +# CFS Zen Tweaks + +{ config, pkgs, lib, ... }: + +with lib; + +let + + cfg = config.programs.cfs-zen-tweaks; + +in + +{ + + meta = { + maintainers = with maintainers; [ mkg20001 ]; + }; + + options = { + programs.cfs-zen-tweaks.enable = mkEnableOption "CFS Zen Tweaks"; + }; + + config = mkIf cfg.enable { + systemd.packages = [ pkgs.cfs-zen-tweaks ]; + + systemd.services.set-cfs-tweak.wantedBy = [ "multi-user.target" "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ]; + }; +} |