nixos/rog-control-center: init

This commit is contained in:
Alexandre Acebedo 2022-12-03 17:09:28 +01:00 committed by K900
parent 8f7537e34f
commit 0905acf069
2 changed files with 30 additions and 0 deletions

View file

@ -211,6 +211,7 @@
./programs/plotinus.nix
./programs/proxychains.nix
./programs/qt5ct.nix
./programs/rog-control-center.nix
./programs/rust-motd.nix
./programs/screen.nix
./programs/sedutil.nix

View file

@ -0,0 +1,29 @@
{ config, lib, pkgs, ... }:
let
cfg = config.programs.rog-control-center;
in
{
options = {
programs.rog-control-center = {
enable = lib.mkEnableOption (lib.mdDoc "the rog-control-center application");
autoStart = lib.mkOption {
default = false;
type = lib.types.bool;
description = lib.mdDoc "Whether rog-control-center should be started automatically.";
};
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [
pkgs.asusctl
(lib.mkIf cfg.autoStart (pkgs.makeAutostartItem { name = "rog-control-center"; package = pkgs.asusctl; }))
];
services.asusd.enable = true;
};
meta.maintainers = pkgs.asusctl.meta.maintainers;
}