1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-23 12:42:01 +01:00
github.com-tboerger-nixos-c.../machines/modules/tools.nix

38 lines
562 B
Nix
Raw Normal View History

2022-02-20 17:46:48 +01:00
{ pkgs, lib, config, options, ... }:
let
cfg = config.my.modules.tools;
in
{
options = with lib; {
my = {
modules = {
tools = {
enable = mkEnableOption ''
Whether to enable tools module
'';
};
};
};
};
config = with lib;
mkIf cfg.enable {
environment = {
systemPackages = with pkgs; [
coreutils
htop
jq
nmap
rsync
tmux
tree
vim
wget
yq
];
};
};
}