create security-tools option

This commit is contained in:
Sean Buckley 2021-03-28 02:51:59 -04:00
parent 29dca3ae70
commit 26a4c68b1f
3 changed files with 9 additions and 2 deletions

View file

@ -12,5 +12,6 @@
./modules/scansnap_s1300.nix
./modules/scroll-boost
./modules/status-on-console.nix
./security-tools.nix
];
}

View file

@ -20,7 +20,6 @@ in
(mkIf (cfg == "desktop-plasma") (import ./plasma.nix { inherit pkgs; }))
(mkIf ("desktop-" == builtins.substring 0 8 cfg) (mkMerge [
(import ./security-tools.nix { inherit pkgs; })
(import ./graphical.nix { inherit pkgs; })
]))

View file

@ -1,5 +1,11 @@
{ pkgs, ... }:
{ config, pkgs, lib, ... }:
let
cfg = config.sconfig.security-tools;
in
{
options.sconfig.security-tools = lib.mkEnableOption "Enable security tools";
config = lib.mkIf cfg {
environment.systemPackages = with pkgs; [
exiftool
burpsuite
@ -43,4 +49,5 @@
isNormalUser = true;
isSystemUser = true;
};
};
}