Skip to content

Commit

Permalink
nixos/opensnitch: remove services.opensnitch.settings.Ebpf option as …
Browse files Browse the repository at this point in the history
…it was unused
  • Loading branch information
LordGrimmauld committed Dec 26, 2024
1 parent 1557114 commit d1bf08f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2505.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@

- `gkraken` software and `hardware.gkraken.enable` option have been removed, use `coolercontrol` via `programs.coolercontrol.enable` option instead.

- `services.opensnitch.settings.Ebpf` option has been removed. It was previously unused and did not affect anything.

- To avoid delaying user logins unnecessarily the `multi-user.target` is no longer ordered after `network-online.target`.
System services requiring a connection to start correctly must explicitly state so, i.e.
```nix
Expand Down
22 changes: 4 additions & 18 deletions nixos/modules/services/security/opensnitch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ in
type = types.submodule {
freeformType = format.type;

imports = [
(mkRemovedOptionModule [ "Ebpf" ] "this option was unused")
];

options = {
Server = {

Expand Down Expand Up @@ -152,24 +156,6 @@ in

};

Ebpf.ModulesPath = mkOption {
type = types.path;
default =
if cfg.settings.ProcMonitorMethod == "ebpf" then
"${config.boot.kernelPackages.opensnitch-ebpf}/etc/opensnitchd"
else
null;
defaultText = literalExpression ''
if cfg.settings.ProcMonitorMethod == "ebpf" then
"\\$\\{config.boot.kernelPackages.opensnitch-ebpf\\}/etc/opensnitchd"
else null;
'';
description = ''
Configure eBPF modules path. Used when
`settings.ProcMonitorMethod` is set to `ebpf`.
'';
};

Rules.Path = mkOption {
type = types.path;
default = "/var/lib/opensnitch/rules";
Expand Down

0 comments on commit d1bf08f

Please sign in to comment.