nixos/arp-scan: init

This commit is contained in:
Sandro Jäckel 2024-11-18 16:27:52 +01:00
parent 28edb9d0d7
commit 2829181316
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 27 additions and 0 deletions

View file

@ -148,6 +148,7 @@
./programs/alvr.nix
./programs/appgate-sdp.nix
./programs/appimage.nix
./programs/arp-scan.nix
./programs/atop.nix
./programs/ausweisapp.nix
./programs/autojump.nix

View file

@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
let
cfg = config.programs.arp-scan;
in {
options = {
programs.arp-scan = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Whether to configure a setcap wrapper for arp-scan.
'';
};
};
};
config = lib.mkIf cfg.enable {
security.wrappers.arp-scan = {
owner = "root";
group = "root";
capabilities = "cap_net_raw+p";
source = lib.getExe pkgs.arp-scan;
};
};
}