nixos/rog-control-center: init
This commit is contained in:
parent
8f7537e34f
commit
0905acf069
@ -211,6 +211,7 @@
|
|||||||
./programs/plotinus.nix
|
./programs/plotinus.nix
|
||||||
./programs/proxychains.nix
|
./programs/proxychains.nix
|
||||||
./programs/qt5ct.nix
|
./programs/qt5ct.nix
|
||||||
|
./programs/rog-control-center.nix
|
||||||
./programs/rust-motd.nix
|
./programs/rust-motd.nix
|
||||||
./programs/screen.nix
|
./programs/screen.nix
|
||||||
./programs/sedutil.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