mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-19 02:50:12 +01:00
17 lines
260 B
Nix
17 lines
260 B
Nix
|
{
|
||
|
lib,
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: let
|
||
|
isEnabled = config.my.hardware.isAmdGpu;
|
||
|
in {
|
||
|
options.my.hardware.isAmdGpu = lib.mkEnableOption "amd gpu";
|
||
|
|
||
|
config = lib.mkIf isEnabled {
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
radeontop
|
||
|
];
|
||
|
};
|
||
|
}
|