From e34dc49c94fa950fe9919b06bfeb858656dc9c21 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 17 Jul 2023 17:40:53 +0300 Subject: [PATCH] add intelgputools --- hosts/sakotop/configuration.nix | 1 + modules/hardware/default.nix | 1 + modules/hardware/intel/default.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 modules/hardware/intel/default.nix 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 + ]; + }; +}