nixos/hardware.corectrl: remove with lib;
This commit is contained in:
parent
dd93025972
commit
f41312d751
@ -1,27 +1,24 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.programs.corectrl;
|
cfg = config.programs.corectrl;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.programs.corectrl = {
|
options.programs.corectrl = {
|
||||||
enable = mkEnableOption ''
|
enable = lib.mkEnableOption ''
|
||||||
CoreCtrl, a tool to overclock amd graphics cards and processors.
|
CoreCtrl, a tool to overclock amd graphics cards and processors.
|
||||||
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" {
|
package = lib.mkPackageOption pkgs "corectrl" {
|
||||||
extraDescription = "Useful for overriding the configuration options used for the package.";
|
extraDescription = "Useful for overriding the configuration options used for the package.";
|
||||||
};
|
};
|
||||||
|
|
||||||
gpuOverclock = {
|
gpuOverclock = {
|
||||||
enable = mkEnableOption ''
|
enable = lib.mkEnableOption ''
|
||||||
GPU overclocking
|
GPU overclocking
|
||||||
'';
|
'';
|
||||||
ppfeaturemask = mkOption {
|
ppfeaturemask = lib.mkOption {
|
||||||
type = types.str;
|
type = lib.types.str;
|
||||||
default = "0xfffd7fff";
|
default = "0xfffd7fff";
|
||||||
example = "0xffffffff";
|
example = "0xffffffff";
|
||||||
description = ''
|
description = ''
|
||||||
@ -34,7 +31,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable (lib.mkMerge [
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
{
|
{
|
||||||
environment.systemPackages = [ cfg.package ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user