Commit 6638cf69 authored by Nanotwerp's avatar Nanotwerp Committed by Nano Twerpus
Browse files

nixos/corectrl: add package option



Co-authored-by: default avatarEmily <git@emilylange.de>
parent 017cdc3e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -12,6 +12,10 @@ in
      Add your user to the corectrl group to run corectrl without needing to enter your password
    '');

    package = mkPackageOption pkgs "corectrl" {
      extraDescription = "Useful for overriding the configuration options used for the package.";
    };

    gpuOverclock = {
      enable = mkEnableOption (lib.mdDoc ''
        GPU overclocking
@@ -32,9 +36,9 @@ in

  config = mkIf cfg.enable (lib.mkMerge [
    {
      environment.systemPackages = [ pkgs.corectrl ];
      environment.systemPackages = [ cfg.package ];

      services.dbus.packages = [ pkgs.corectrl ];
      services.dbus.packages = [ cfg.package ];

      users.groups.corectrl = { };