0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-16 15:10:29 +03:00
nixpkgs/nixos/modules/services/security/opensnitch.nix
2021-09-14 18:51:23 +02:00

24 lines
391 B
Nix

{ 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" ];
};
};
}