nixos/cfs-zen-tweaks: init

Co-authored-by: Aaron Andersen <aaron@fosslib.net>
This commit is contained in:
Maciej Krüger 2021-11-24 08:07:08 +01:00
parent 9a94139d34
commit 04d312589c
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F
2 changed files with 29 additions and 0 deletions

View file

@ -127,6 +127,7 @@
./programs/captive-browser.nix
./programs/ccache.nix
./programs/cdemu.nix
./programs/cfs-zen-tweaks.nix
./programs/chromium.nix
./programs/clickshare.nix
./programs/cnping.nix

View file

@ -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" ];
};
}