services: port amdgpu services from private config

This commit is contained in:
2020-10-17 11:59:01 +11:00
parent 326f4b9fec
commit 6cd420d7af
5 changed files with 150 additions and 3 deletions

View File

@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
with lib;
{
options.services.amdgpu = {
cards = mkOption {
type = types.listOf types.str;
default = [ "card0" ];
example = literalExample ''[ "card0" ]'';
description = ''
A list of cards to enable fan configuration for. The identifiers for
each device can be found in /sys/class/drm/ as card0, card1, etc.
'';
};
};
}