diff options
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 = { |