OpenSnitch: Difference between revisions
imported>Onny Remove unstable note |
imported>Onny m Syntax cleanup |
||
Line 24: | Line 24: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
services.opensnitch = { | |||
enable = true; | |||
rules = { | |||
systemd-timesyncd = { | |||
name = "systemd-timesyncd"; | |||
enabled = true; | |||
action = "allow"; | |||
duration = "always"; | |||
operator = { | |||
type ="simple"; | |||
sensitive = false; | |||
operand = "process.path"; | |||
data = "${lib.getBin pkgs.systemd}/lib/systemd/systemd-timesyncd"; | |||
}; | }; | ||
}; | |||
systemd-resolved = { | |||
name = "systemd-resolved"; | |||
enabled = true; | |||
action = "allow"; | |||
duration = "always"; | |||
operator = { | |||
type ="simple"; | |||
sensitive = false; | |||
operand = "process.path"; | |||
data = "${lib.getBin pkgs.systemd}/lib/systemd/systemd-resolved"; | |||
}; | }; | ||
}; | }; | ||
}; | }; | ||
}; | |||
</syntaxhighlight> | </syntaxhighlight> | ||