From 6d0149ee6ee4989cfe66db92d8260d5e88c27590 Mon Sep 17 00:00:00 2001 From: m3tm3re Date: Sun, 26 Apr 2026 12:32:47 +0200 Subject: [PATCH] feat: add AMD GPU tools, media packages, and productivity module Task 3 - Gaming profile: - Add gpu.nix with ROCm runtime/smi/info and vulkan-tools - Import gpu.nix in gaming profile aggregator Task 4 - Media profile: - Add unimatrix to yt-dlp.nix packages - (plexamp, webcord, mpv config were already present) Task 5 - Desktop apps: - Add productivity.nix with pomodoro-timer - Import productivity.nix in desktop apps aggregator --- home/desktop/apps/default.nix | 3 ++- home/desktop/apps/productivity.nix | 18 ++++++++++++++++++ home/profiles/gaming/default.nix | 3 ++- home/profiles/gaming/gpu.nix | 21 +++++++++++++++++++++ home/profiles/media/yt-dlp.nix | 1 + 5 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 home/desktop/apps/productivity.nix create mode 100644 home/profiles/gaming/gpu.nix diff --git a/home/desktop/apps/default.nix b/home/desktop/apps/default.nix index 05fb046..0888cfc 100644 --- a/home/desktop/apps/default.nix +++ b/home/desktop/apps/default.nix @@ -1,9 +1,10 @@ -# Desktop apps aggregator — Obsidian, Office, web apps, and crypto tools. +# Desktop apps aggregator — Obsidian, Office, web apps, crypto tools, and productivity. {...}: { imports = [ ./obsidian.nix ./office.nix ./webapps.nix ./crypto.nix + ./productivity.nix ]; } diff --git a/home/desktop/apps/productivity.nix b/home/desktop/apps/productivity.nix new file mode 100644 index 0000000..dd0c134 --- /dev/null +++ b/home/desktop/apps/productivity.nix @@ -0,0 +1,18 @@ +# Productivity tools — Pomodoro timer and focus utilities. +{ + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.desktop.apps.productivity; +in { + options.desktop.apps.productivity.enable = mkEnableOption "enable productivity tools"; + + config = mkIf cfg.enable { + home.packages = with pkgs; [ + pomodoro-timer + ]; + }; +} diff --git a/home/profiles/gaming/default.nix b/home/profiles/gaming/default.nix index e1d0e47..7b1f663 100644 --- a/home/profiles/gaming/default.nix +++ b/home/profiles/gaming/default.nix @@ -1,7 +1,8 @@ -# Gaming profile aggregator — Steam platform and Gamescope session support. +# Gaming profile aggregator — Steam platform, Gamescope session, and AMD GPU tools. {...}: { imports = [ ./steam.nix ./gamescope.nix + ./gpu.nix ]; } diff --git a/home/profiles/gaming/gpu.nix b/home/profiles/gaming/gpu.nix new file mode 100644 index 0000000..ad8c85c --- /dev/null +++ b/home/profiles/gaming/gpu.nix @@ -0,0 +1,21 @@ +# AMD GPU tools — ROCm runtime, monitoring, and Vulkan utilities for gaming. +{ + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.profiles.gaming.gpu; +in { + options.profiles.gaming.gpu.enable = mkEnableOption "enable AMD GPU tools"; + + config = mkIf cfg.enable { + home.packages = with pkgs; [ + rocmPackages.rocm-runtime + rocmPackages.rocm-smi + rocmPackages.rocminfo + vulkan-tools + ]; + }; +} diff --git a/home/profiles/media/yt-dlp.nix b/home/profiles/media/yt-dlp.nix index 982f585..5c9e088 100644 --- a/home/profiles/media/yt-dlp.nix +++ b/home/profiles/media/yt-dlp.nix @@ -13,6 +13,7 @@ in { config = mkIf cfg.enable { home.packages = with pkgs; [ plexamp + unimatrix webcord ];