parent
6702c6c806
commit
94f775024e
@ -0,0 +1,24 @@ |
||||
{ 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" ]; |
||||
}; |
||||
|
||||
}; |
||||
} |
||||
|
Loading…
Reference in new issue