mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
33 lines
550 B
Nix
33 lines
550 B
Nix
# CFS Zen Tweaks
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.programs.cfs-zen-tweaks;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
meta = {
|
|
maintainers = with lib.maintainers; [ mkg20001 ];
|
|
};
|
|
|
|
options = {
|
|
programs.cfs-zen-tweaks.enable = lib.mkEnableOption "CFS Zen Tweaks";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
systemd.packages = [ pkgs.cfs-zen-tweaks ];
|
|
|
|
systemd.services.set-cfs-tweaks.wantedBy = [
|
|
"multi-user.target"
|
|
"suspend.target"
|
|
"hibernate.target"
|
|
"hybrid-sleep.target"
|
|
"suspend-then-hibernate.target"
|
|
];
|
|
};
|
|
}
|