mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
create security-tools option
This commit is contained in:
parent
29dca3ae70
commit
26a4c68b1f
3 changed files with 9 additions and 2 deletions
|
@ -12,5 +12,6 @@
|
||||||
./modules/scansnap_s1300.nix
|
./modules/scansnap_s1300.nix
|
||||||
./modules/scroll-boost
|
./modules/scroll-boost
|
||||||
./modules/status-on-console.nix
|
./modules/status-on-console.nix
|
||||||
|
./security-tools.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,6 @@ in
|
||||||
(mkIf (cfg == "desktop-plasma") (import ./plasma.nix { inherit pkgs; }))
|
(mkIf (cfg == "desktop-plasma") (import ./plasma.nix { inherit pkgs; }))
|
||||||
|
|
||||||
(mkIf ("desktop-" == builtins.substring 0 8 cfg) (mkMerge [
|
(mkIf ("desktop-" == builtins.substring 0 8 cfg) (mkMerge [
|
||||||
(import ./security-tools.nix { inherit pkgs; })
|
|
||||||
(import ./graphical.nix { inherit pkgs; })
|
(import ./graphical.nix { inherit pkgs; })
|
||||||
]))
|
]))
|
||||||
|
|
||||||
|
|
|
@ -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; [
|
environment.systemPackages = with pkgs; [
|
||||||
exiftool
|
exiftool
|
||||||
burpsuite
|
burpsuite
|
||||||
|
@ -43,4 +49,5 @@
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue