Merge pull request #283059 from Nanotwerp/patch-1
nixos/corectrl: add package option
This commit is contained in:
commit
e5f115b0d4
|
@ -12,6 +12,10 @@ in
|
||||||
Add your user to the corectrl group to run corectrl without needing to enter your password
|
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 = {
|
gpuOverclock = {
|
||||||
enable = mkEnableOption (lib.mdDoc ''
|
enable = mkEnableOption (lib.mdDoc ''
|
||||||
GPU overclocking
|
GPU overclocking
|
||||||
|
@ -32,9 +36,9 @@ in
|
||||||
|
|
||||||
config = mkIf cfg.enable (lib.mkMerge [
|
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 = { };
|
users.groups.corectrl = { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user