HASH c0a9c9adbf90
DATE 2025-04-17
SUBJECT utils: rework pacakage list
FILES 1 CHANGED
HASH c0a9c9adbf90
DATE 2025-04-17
SUBJECT utils: rework pacakage list
FILES 1 CHANGED
┌─ modules/home/console/tools/utils.nix ─────────────────────────────────────┐
│ diff --git a/modules/home/console/tools/utils.nix b/modules/home/console/tools/uti │
│ ls.nix │
│ index 9376e57..3216a24 100644 │
│ --- a/modules/home/console/tools/utils.nix │
│ +++ b/modules/home/console/tools/utils.nix │
│ @@ -5,55 +5,64 @@ │
│ self', │
│ ... │
│ }: let │
│ - inherit (lib) mkIf; │
│ + inherit (lib) optionals mkIf; │
│ inherit (builtins) attrValues; │
│ - │
│ + inherit (pkgs.stdenv) isLinux isDarwin; │
│ cfg = osConfig.ooknet.console.tools.utils; │
│ -in { │
│ - config = mkIf cfg.enable { │
│ - home.packages = attrValues { │
│ - inherit │
│ - (pkgs) │
│ - bc # Calculator │
│ │
│ - # file utility │
│ - duf │
│ - du-dust │
│ - fd │
│ - ripgrep │
│ - # archive │
│ - zip │
│ - unzip │
│ - unrar │
│ - # file transfer │
│ - rsync │
│ - wget │
│ - httpie # Better curl │
│ + # common packages for all platforms │
│ + commonPackages = attrValues { │
│ + inherit │
│ + (pkgs) │
│ + bc │
│ + duf │
│ + du-dust │
│ + fd │
│ + ripgrep │
│ + zip │
│ + unzip │
│ + rsync │
│ + wget │
│ + httpie │
│ + diffsitter │
│ + jq │
│ + tldr │
│ + progress │
│ + killall │
│ + libnotify │
│ + alejandra │
│ + cachix │
│ + gum │
│ + ; │
│ + │
│ + # AI tools │
│ + inherit │
│ + (self'.packages) │
│ + repomix │
│ + goki │
│ + ; │
│ + }; │
│ │
│ - # resource manager │
│ - powertop │
│ - #shell scripting │
│ - gum │
│ - # audio ctrl │
│ - pamixer │
│ - diffsitter # Better diff │
│ - jq # JSON pretty printer and manipulator │
│ - tldr # Community maintained help pages │
│ - progress │
│ - killall │
│ - # Notifications │
│ - libnotify │
│ - # Nix tooling │
│ - alejandra │
│ - cachix │
│ - ; │
│ + # linux-specific packages │
│ + linuxPackages = attrValues { │
│ + inherit │
│ + (pkgs) │
│ + pamixer │
│ + acpi │
│ + powertop │
│ + unrar │
│ + ; │
│ + }; │
│ │
│ - #AI │
│ - inherit │
│ - (self'.packages) │
│ - repomix │
│ - goki │
│ - ; │
│ + # darwin-specific packages, if needed │
│ + darwinPackages = │
│ + attrValues { │
│ }; │
│ +in { │
│ + config = mkIf cfg.enable { │
│ + home.packages = │
│ + commonPackages │
│ + ++ (optionals isLinux linuxPackages) │
│ + ++ (optionals isDarwin darwinPackages); │
│ }; │
│ } │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ .../home/console/tools/utils.nix ───┐
│ diff --git a/modules/home/console/tools/util │
│ s.nix b/modules/home/console/tools/utils.nix │
│ index 9376e57..3216a24 100644 │
│ --- a/modules/home/console/tools/utils.nix │
│ +++ b/modules/home/console/tools/utils.nix │
│ @@ -5,55 +5,64 @@ │
│ self', │
│ ... │
│ }: let │
│ - inherit (lib) mkIf; │
│ + inherit (lib) optionals mkIf; │
│ inherit (builtins) attrValues; │
│ - │
│ + inherit (pkgs.stdenv) isLinux isDarwin; │
│ cfg = osConfig.ooknet.console.tools.utils │
│ ; │
│ -in { │
│ - config = mkIf cfg.enable { │
│ - home.packages = attrValues { │
│ - inherit │
│ - (pkgs) │
│ - bc # Calculator │
│ │
│ - # file utility │
│ - duf │
│ - du-dust │
│ - fd │
│ - ripgrep │
│ - # archive │
│ - zip │
│ - unzip │
│ - unrar │
│ - # file transfer │
│ - rsync │
│ - wget │
│ - httpie # Better curl │
│ + # common packages for all platforms │
│ + commonPackages = attrValues { │
│ + inherit │
│ + (pkgs) │
│ + bc │
│ + duf │
│ + du-dust │
│ + fd │
│ + ripgrep │
│ + zip │
│ + unzip │
│ + rsync │
│ + wget │
│ + httpie │
│ + diffsitter │
│ + jq │
│ + tldr │
│ + progress │
│ + killall │
│ + libnotify │
│ + alejandra │
│ + cachix │
│ + gum │
│ + ; │
│ + │
│ + # AI tools │
│ + inherit │
│ + (self'.packages) │
│ + repomix │
│ + goki │
│ + ; │
│ + }; │
│ │
│ - # resource manager │
│ - powertop │
│ - #shell scripting │
│ - gum │
│ - # audio ctrl │
│ - pamixer │
│ - diffsitter # Better diff │
│ - jq # JSON pretty printer and manipu │
│ lator │
│ - tldr # Community maintained help pa │
│ ges │
│ - progress │
│ - killall │
│ - # Notifications │
│ - libnotify │
│ - # Nix tooling │
│ - alejandra │
│ - cachix │
│ - ; │
│ + # linux-specific packages │
│ + linuxPackages = attrValues { │
│ + inherit │
│ + (pkgs) │
│ + pamixer │
│ + acpi │
│ + powertop │
│ + unrar │
│ + ; │
│ + }; │
│ │
│ - #AI │
│ - inherit │
│ - (self'.packages) │
│ - repomix │
│ - goki │
│ - ; │
│ + # darwin-specific packages, if needed │
│ + darwinPackages = │
│ + attrValues { │
│ }; │
│ +in { │
│ + config = mkIf cfg.enable { │
│ + home.packages = │
│ + commonPackages │
│ + ++ (optionals isLinux linuxPackages) │
│ + ++ (optionals isDarwin darwinPackages │
│ ); │
│ }; │
│ } │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET