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; [ environment.systemPackages = with pkgs; [
home-manager home-manager
wget
kitty kitty
tldr
fastfetch fastfetch
tree
font-awesome font-awesome
dig
btop
thunderbird thunderbird
lf lf
file
qalculate-qt qalculate-qt
baobab baobab
arduino-ide arduino-ide
piper piper
element-desktop element-desktop
calibre calibre
vlc
loupe loupe
gimp3 gimp3
mullvad-vpn mullvad-vpn

View File

@ -4,5 +4,6 @@
./nh.nix ./nh.nix
./nvf.nix ./nvf.nix
./fzf.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; nh.enable = true;
fzf.enable = true; fzf.enable = true;
zsh.enable = true; zsh.enable = true;
base-cli-pkgs.enable = true;
}; };
}; };
} }