me
/
guix
Archived
1
0
Fork 0

services: nftables: Add 'configuration' action.

* gnu/services/networking.scm (nftables-shepherd-service)[actions]: New field.
Marius Bakke 2023-09-16 12:36:17 +08:00
parent 2b1eb3c1cf
commit 4163c617b8
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 1 additions and 0 deletions

View File

@ -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)))