d9e13ed064
GitOrigin-RevId: a930f7da84786807bb105df40e76b541604c3e72
24 lines
391 B
Nix
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" ];
|
|
};
|
|
|
|
};
|
|
}
|
|
|