mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 05:02:28 +00:00
Use new opensnitch service
This commit is contained in:
@@ -32,6 +32,8 @@
|
|||||||
|
|
||||||
time.timeZone = "America/Toronto";
|
time.timeZone = "America/Toronto";
|
||||||
|
|
||||||
|
services.opensnitch.enable = true;
|
||||||
|
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
|
|
||||||
# Enable 32bit for steam
|
# Enable 32bit for steam
|
||||||
|
@@ -1,24 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
systemd = {
|
|
||||||
services = {
|
|
||||||
opensnitch = {
|
|
||||||
description = "Opensnitch Application Firewall Daemon";
|
|
||||||
wants = [ "network.target" ];
|
|
||||||
after = [ "network.target" ];
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
path = [ pkgs.iptables ];
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "simple";
|
|
||||||
PermissionsStartOnly = true;
|
|
||||||
ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p /etc/opensnitch/rules";
|
|
||||||
ExecStart = "${pkgs.opensnitch}/bin/opensnitchd -rules-path /etc/opensnitch/rules";
|
|
||||||
Restart = "always";
|
|
||||||
RestartSec = 30;
|
|
||||||
};
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@@ -185,8 +185,6 @@ in
|
|||||||
libreoffice
|
libreoffice
|
||||||
linuxPackages.perf
|
linuxPackages.perf
|
||||||
networkmanager-openvpn
|
networkmanager-openvpn
|
||||||
opensnitch
|
|
||||||
opensnitch-ui
|
|
||||||
pinentry-curses
|
pinentry-curses
|
||||||
pulseeffects-pw
|
pulseeffects-pw
|
||||||
qemu
|
qemu
|
||||||
|
@@ -29,7 +29,6 @@
|
|||||||
./common/fonts.nix
|
./common/fonts.nix
|
||||||
./common/linux.nix
|
./common/linux.nix
|
||||||
./common/netdata/default.nix
|
./common/netdata/default.nix
|
||||||
./common/opensnitch/default.nix
|
|
||||||
./common/networking.nix
|
./common/networking.nix
|
||||||
./common/packages.nix
|
./common/packages.nix
|
||||||
./common/printing.nix
|
./common/printing.nix
|
||||||
|
@@ -34,6 +34,8 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.opensnitch-ui.enable = true;
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
Reference in New Issue
Block a user