diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-01-24 06:01:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 06:01:25 +0000 |
commit | 297b3df1d541a528968581396aa855c4b7b58d0b (patch) | |
tree | 5cf9edf10554e48181a4aa75f9f37c73fcbedd78 /nixos | |
parent | d10d75abfa5f7cd8ca83b670149cb0cdae898175 (diff) | |
parent | bd24648ae1c914255effaacfcb8bc4b5aea1769c (diff) | |
download | nixlib-297b3df1d541a528968581396aa855c4b7b58d0b.tar nixlib-297b3df1d541a528968581396aa855c4b7b58d0b.tar.gz nixlib-297b3df1d541a528968581396aa855c4b7b58d0b.tar.bz2 nixlib-297b3df1d541a528968581396aa855c4b7b58d0b.tar.lz nixlib-297b3df1d541a528968581396aa855c4b7b58d0b.tar.xz nixlib-297b3df1d541a528968581396aa855c4b7b58d0b.tar.zst nixlib-297b3df1d541a528968581396aa855c4b7b58d0b.zip |
Merge staging-next into staging
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/hardware/corectrl.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/modules/hardware/corectrl.nix b/nixos/modules/hardware/corectrl.nix index 8ef61a158d5c..b1d3f2f0ce7e 100644 --- a/nixos/modules/hardware/corectrl.nix +++ b/nixos/modules/hardware/corectrl.nix @@ -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 = { }; |