formatting
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
{ lib, pkgs, config, ... }:
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let cfg = config.share.hardware.amd;
|
||||
in {
|
||||
let
|
||||
cfg = config.share.hardware.amd;
|
||||
in
|
||||
{
|
||||
imports = [ ./options.nix ];
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
boot.kernelParams = [
|
||||
(if cfg.enable then "amdgpu.ppfeaturemask=0xffffffff" else null)
|
||||
];
|
||||
boot.kernelParams = [ (if cfg.enable then "amdgpu.ppfeaturemask=0xffffffff" else null) ];
|
||||
|
||||
# Configure programs
|
||||
programs.corectrl.enable = cfg.corectrl.enable;
|
||||
@@ -47,7 +52,10 @@ in {
|
||||
# nixpkg is broken so need to manually define
|
||||
systemd.services.lactd = mkIf cfg.lact.enable {
|
||||
description = "AMDGPU Control Daemon";
|
||||
path = [ pkgs.bash pkgs.lact ];
|
||||
path = [
|
||||
pkgs.bash
|
||||
pkgs.lact
|
||||
];
|
||||
script = ''
|
||||
lact daemon
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user