Merge pull request #283059 from Nanotwerp/patch-1

nixos/corectrl: add package option

authored by h7x4 and committed by GitHub e5f115b0 8b6b276e

+6 -2
+6 -2
nixos/modules/hardware/corectrl.nix
··· 12 Add your user to the corectrl group to run corectrl without needing to enter your password 13 ''); 14 15 gpuOverclock = { 16 enable = mkEnableOption (lib.mdDoc '' 17 GPU overclocking ··· 32 33 config = mkIf cfg.enable (lib.mkMerge [ 34 { 35 - environment.systemPackages = [ pkgs.corectrl ]; 36 37 - services.dbus.packages = [ pkgs.corectrl ]; 38 39 users.groups.corectrl = { }; 40
··· 12 Add your user to the corectrl group to run corectrl without needing to enter your password 13 ''); 14 15 + package = mkPackageOption pkgs "corectrl" { 16 + extraDescription = "Useful for overriding the configuration options used for the package."; 17 + }; 18 + 19 gpuOverclock = { 20 enable = mkEnableOption (lib.mdDoc '' 21 GPU overclocking ··· 36 37 config = mkIf cfg.enable (lib.mkMerge [ 38 { 39 + environment.systemPackages = [ cfg.package ]; 40 41 + services.dbus.packages = [ cfg.package ]; 42 43 users.groups.corectrl = { }; 44