From 67b82386d8ad8ae3eea5083bd22809f6192d92a8 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 23 Nov 2023 04:20:34 +0300 Subject: 2023-11-23 --- modules/common/nmap.nix | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'modules/common/nmap.nix') 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 = { -- cgit 1.4.1