nixos-config/modules/security-tools.nix

27 lines
512 B
Nix
Raw Normal View History

2021-03-28 06:51:59 +00:00
{ config, pkgs, lib, ... }:
let
2021-03-28 06:51:59 +00:00
cfg = config.sconfig.security-tools;
2021-03-28 06:51:59 +00:00
in
2020-09-18 13:54:09 +00:00
{
2021-03-28 06:51:59 +00:00
options.sconfig.security-tools = lib.mkEnableOption "Enable security tools";
config = lib.mkIf cfg {
2021-10-04 05:48:11 +00:00
environment.systemPackages = [ pkgs.security-toolbox ];
2021-08-18 17:34:34 +00:00
2021-03-28 06:52:09 +00:00
programs = {
wireshark.enable = true;
wireshark.package = pkgs.wireshark;
};
2021-03-28 06:48:01 +00:00
2022-02-25 14:51:51 +00:00
users.users.zim = {
2021-10-06 04:22:14 +00:00
group = "users";
2021-03-28 06:52:09 +00:00
isSystemUser = true;
2021-04-16 22:35:55 +00:00
useDefaultShell = true;
2022-02-25 14:51:51 +00:00
home = "/home/zim";
2021-04-16 22:35:55 +00:00
createHome = true;
2021-03-28 06:52:09 +00:00
};
2021-03-28 06:51:59 +00:00
};
2020-09-18 13:54:09 +00:00
}