nixos-config/modules/security-tools.nix
2022-02-25 09:51:51 -05:00

26 lines
512 B
Nix

{ 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 = [ pkgs.security-toolbox ];
programs = {
wireshark.enable = true;
wireshark.package = pkgs.wireshark;
};
users.users.zim = {
group = "users";
isSystemUser = true;
useDefaultShell = true;
home = "/home/zim";
createHome = true;
};
};
}