nixpkgs/nixos/modules/programs/rog-control-center.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
725 B
Nix
Raw Normal View History

2022-12-03 17:09:28 +01:00
{ 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;
}