formatting
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
{ lib, pkgs, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.share.hardware.amd;
|
||||
let cfg = config.share.hardware.amd;
|
||||
in {
|
||||
imports = [
|
||||
./options.nix
|
||||
];
|
||||
imports = [ ./options.nix ];
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
boot.kernelParams = [ (if cfg.corectrl.enable then "amdgpu.ppfeaturemask=0xffffffff" else "") ];
|
||||
boot.kernelParams = [
|
||||
(if cfg.corectrl.enable then "amdgpu.ppfeaturemask=0xffffffff" else "")
|
||||
];
|
||||
|
||||
# Configure programs
|
||||
programs.corectrl.enable = cfg.corectrl.enable;
|
||||
@@ -42,7 +41,7 @@ in {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
'';
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
{ lib, ... }:
|
||||
with lib;
|
||||
{
|
||||
with lib; {
|
||||
options.share.hardware.amd = {
|
||||
enable = mkEnableOption "amd hardware config";
|
||||
|
||||
|
||||
corectrl.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
||||
Reference in New Issue
Block a user