diff options
author | Jonas Heinrich <onny@project-insanity.org> | 2022-02-23 11:08:49 +0100 |
---|---|---|
committer | Yt <raphael@megzari.com> | 2022-03-02 18:38:56 -0500 |
commit | 764670261a559e0e2e89dcce487fb9bd3ae19f9e (patch) | |
tree | 64d59195c2eed6c02e5c783a8eb1264a1924764b /pkgs/tools/networking/opensnitch | |
parent | 6d0bddbb0e947a6850a9618931db8502cb6749c4 (diff) | |
download | nixpkgs-764670261a559e0e2e89dcce487fb9bd3ae19f9e.tar nixpkgs-764670261a559e0e2e89dcce487fb9bd3ae19f9e.tar.gz nixpkgs-764670261a559e0e2e89dcce487fb9bd3ae19f9e.tar.bz2 nixpkgs-764670261a559e0e2e89dcce487fb9bd3ae19f9e.tar.lz nixpkgs-764670261a559e0e2e89dcce487fb9bd3ae19f9e.tar.xz nixpkgs-764670261a559e0e2e89dcce487fb9bd3ae19f9e.tar.zst nixpkgs-764670261a559e0e2e89dcce487fb9bd3ae19f9e.zip |
nixos/opensnitch: Add options to configure daemon
Diffstat (limited to 'pkgs/tools/networking/opensnitch')
-rw-r--r-- | pkgs/tools/networking/opensnitch/daemon.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/tools/networking/opensnitch/daemon.nix b/pkgs/tools/networking/opensnitch/daemon.nix index e636950cd98..25b42066419 100644 --- a/pkgs/tools/networking/opensnitch/daemon.nix +++ b/pkgs/tools/networking/opensnitch/daemon.nix @@ -48,7 +48,12 @@ buildGoModule rec { postBuild = '' mv $GOPATH/bin/daemon $GOPATH/bin/opensnitchd - mkdir -p $out/lib/systemd/system + mkdir -p $out/etc/opensnitchd $out/lib/systemd/system + cp system-fw.json $out/etc/opensnitchd/ + substitute default-config.json $out/etc/default-config.json \ + --replace "/var/log/opensnitchd.log" "/dev/stdout" \ + --replace "iptables" "nftables" \ + --replace "ebpf" "proc" substitute opensnitchd.service $out/lib/systemd/system/opensnitchd.service \ --replace "/usr/local/bin/opensnitchd" "$out/bin/opensnitchd" \ --replace "/etc/opensnitchd/rules" "/var/lib/opensnitch/rules" \ |