diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-11-23 04:20:34 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-11-23 04:20:34 +0300 |
commit | 67b82386d8ad8ae3eea5083bd22809f6192d92a8 (patch) | |
tree | 41829a0b3e05a9dbb4b0189e34a7b53e401f489e /modules/common/nmap.nix | |
parent | 2023-11-19 (diff) |
2023-11-23
Diffstat (limited to '')
-rw-r--r-- | modules/common/nmap.nix | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/modules/common/nmap.nix b/modules/common/nmap.nix index ba06af3..6c6192c 100644 --- a/modules/common/nmap.nix +++ b/modules/common/nmap.nix @@ -11,6 +11,11 @@ in { options.nixfiles.modules.nmap.enable = mkEnableOption "Nmap"; config = mkIf cfg.enable { + nixfiles.modules.common.shell.aliases = { + nmap-vulners = "nmap -sV --script=vulners/vulners.nse"; + nmap-vulscan = "nmap -sV --script=vulscan/vulscan.nse"; + }; + hm = { home = { file = { @@ -25,17 +30,6 @@ in { ''; }; - programs.bash = { - shellAliases = { - nmap-vulners = "nmap -sV --script=vulners/vulners.nse"; - nmap-vulscan = "nmap -sV --script=vulscan/vulscan.nse"; - }; - initExtra = mkAfter '' - _complete_alias nmap-vulners _nmap nmap - _complete_alias nmap-vulscan _nmap nmap - ''; - }; - systemd.user = { services.update-nmap-vulscan-lists = { Service = { |