nixos-config/modules/security-tools.nix
2021-10-06 00:22:14 -04:00

26 lines
516 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.sandy = {
group = "users";
isSystemUser = true;
useDefaultShell = true;
home = "/home/sandy";
createHome = true;
};
};
}