diff options
author | Alexandre Acebedo <alexandre@acebedo.fr> | 2022-12-03 17:09:28 +0100 |
---|---|---|
committer | K900 <me@0upti.me> | 2022-12-04 10:11:27 +0300 |
commit | 0905acf06944ac5b6b38723b7b15963213e34df6 (patch) | |
tree | 5c190b980c01817fbf4fa3e5c3df9d6e3dec9986 /nixos/modules/programs | |
parent | 8f7537e34fdaa2d1e0dda57e36a1b93e91449757 (diff) |
nixos/rog-control-center: init
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/rog-control-center.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixos/modules/programs/rog-control-center.nix b/nixos/modules/programs/rog-control-center.nix new file mode 100644 index 0000000000000..4aef5143ac7ff --- /dev/null +++ b/nixos/modules/programs/rog-control-center.nix @@ -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; +} |