aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2023-09-16 12:36:17 +0800
committerMarius Bakke <marius@gnu.org>2023-09-22 01:29:18 +0800
commit4163c617b84802fbe780b9668bb092eab479fc28 (patch)
tree08e9eade8e51d1d4f51d0034e997dd2737a8a3ae
parent2b1eb3c1cf45cf916e30c3b32b3526d90a636cd9 (diff)
downloadguix-4163c617b84802fbe780b9668bb092eab479fc28.tar.gz
guix-4163c617b84802fbe780b9668bb092eab479fc28.zip
services: nftables: Add 'configuration' action.
* gnu/services/networking.scm (nftables-shepherd-service)[actions]: New field.
-rw-r--r--gnu/services/networking.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index befaca0aca..f4aff2d979 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -1844,6 +1844,7 @@ table inet filter {
(let ((nft (file-append package "/sbin/nft")))
(shepherd-service
(documentation "Packet filtering and classification")
+ (actions (list (shepherd-configuration-action ruleset)))
(provision '(nftables))
(start #~(lambda _
(invoke #$nft "--file" #$ruleset)))