mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-23 12:42:01 +01:00
38 lines
562 B
Nix
38 lines
562 B
Nix
|
{ 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
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|