mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
25 lines
391 B
Nix
25 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" ];
|
|
};
|
|
|
|
};
|
|
}
|
|
|