feat: Convert to module options
This commit is contained in:
parent
3792d15fd0
commit
44bb5b5c8c
9 changed files with 420 additions and 315 deletions
modules
22
modules/netTools.nix
Normal file
22
modules/netTools.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.jiriks74.zsh;
|
||||
in {
|
||||
meta.maintainers = with lib.maintainers; [jiriks74];
|
||||
|
||||
options.jiriks74.zsh.netTools = lib.mkEnableOption "Install usefull network tools";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
dig
|
||||
inetutils
|
||||
iputils
|
||||
lsof
|
||||
nmap
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue