mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
40 lines
755 B
Nix
40 lines
755 B
Nix
![]() |
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
cfg = config.programs.rog-control-center;
|
||
|
in
|
||
|
{
|
||
|
options = {
|
||
|
programs.rog-control-center = {
|
||
|
enable = lib.mkEnableOption "the rog-control-center application";
|
||
|
|
||
|
autoStart = lib.mkOption {
|
||
|
default = false;
|
||
|
type = lib.types.bool;
|
||
|
description = "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;
|
||
|
}
|