mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
nixos/rog-control-center: init
This commit is contained in:
parent
8f7537e34f
commit
0905acf069
@ -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
|
||||
|
29
nixos/modules/programs/rog-control-center.nix
Normal file
29
nixos/modules/programs/rog-control-center.nix
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user