mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
04d312589c
Co-authored-by: Aaron Andersen <aaron@fosslib.net>
29 lines
514 B
Nix
29 lines
514 B
Nix
# 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" ];
|
|
};
|
|
}
|