formatting

This commit is contained in:
mjallen18
2024-05-31 16:11:42 -05:00
parent 4aead74c7f
commit 29ec754b2f
82 changed files with 1521 additions and 974 deletions

View File

@@ -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
'';

View File

@@ -1,5 +1,6 @@
{ lib, ... }:
with lib; {
with lib;
{
options.share.hardware.amd = {
enable = mkEnableOption "amd hardware config";