move basic cli pkgs that doesn't need extra config to a module
This commit is contained in:
1 parent
b902e9137e
commit
3b1d577018
4 files changed
+25
-8
No files matched your search
@@ -4,5 +4,6 @@
|
||||
./nh.nix
|
||||
./nvf.nix
|
||||
./fzf.nix
|
||||
./pkgs.nix
|
||||
];
|
||||
}
|
||||
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user