diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 820287c0..f1c29f60 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -49,6 +49,7 @@ }; hardware = { nvidia.enable = true; + intelgputools.enable = true; pipewire.enable = true; bluetooth.enable = true; }; diff --git a/modules/hardware/default.nix b/modules/hardware/default.nix index 11f18646..28147d5b 100644 --- a/modules/hardware/default.nix +++ b/modules/hardware/default.nix @@ -3,5 +3,6 @@ ./nvidia ./pipewire ./bluetooth + ./intel ]; } diff --git a/modules/hardware/intel/default.nix b/modules/hardware/intel/default.nix new file mode 100644 index 00000000..df8b0f07 --- /dev/null +++ b/modules/hardware/intel/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.hardware.intelgputools; +in +{ + options.modules.hardware.intelgputools = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + intel-gpu-tools + ]; + }; +}