nixpkgs/nixos/modules/services/security/opensnitch.nix

25 lines
391 B
Nix
Raw Normal View History

2021-08-01 16:06:53 +02:00
{ config, lib, pkgs, ... }:
with lib;
let
name = "opensnitch";
cfg = config.services.opensnitch;
in {
options = {
services.opensnitch = {
enable = mkEnableOption "Opensnitch application firewall";
};
};
config = mkIf cfg.enable {
systemd = {
packages = [ pkgs.opensnitch ];
services.opensnitchd.wantedBy = [ "multi-user.target" ];
};
};
}