move basic cli pkgs that doesn't need extra config to a module

This commit is contained in:
smayzy 2025-07-08 23:16:58 +02:00
parent b902e9137e
commit 3b1d577018
4 changed files with 25 additions and 8 deletions

View File

@ -16,24 +16,17 @@
environment.systemPackages = with pkgs; [
home-manager
wget
kitty
tldr
fastfetch
tree
font-awesome
dig
btop
thunderbird
lf
file
qalculate-qt
baobab
arduino-ide
piper
element-desktop
calibre
vlc
loupe
gimp3
mullvad-vpn

View File

@ -4,5 +4,6 @@
./nh.nix
./nvf.nix
./fzf.nix
./pkgs.nix
];
}

View File

@ -0,0 +1,23 @@
{ config, lib, pkgs, ...}:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.base-cli-pkgs.enable = mkOption {
type = types.bool;
default = false;
description = "install base cli pkgs that doesn't need extra config";
};
config = mkIf config.smayzy.base-cli-pkgs.enable {
environment.systemPackages = with pkgs; [
wget
tldr
tree
dig
btop
file
vim
];
};
}

View File

@ -15,7 +15,7 @@ in
nh.enable = true;
fzf.enable = true;
zsh.enable = true;
base-cli-pkgs.enable = true;
};
};
}