mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-19 02:50:12 +01:00
18 lines
273 B
Nix
18 lines
273 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
|
|
amdvlk
|
|
];
|
|
};
|
|
}
|