summary refs log tree commit diff
path: root/nixos/modules/programs/cfs-zen-tweaks.nix
blob: f168662bbefe7ad0a3a4899e9231857b161b4eba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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" ];
  };
}