1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 18:40:57 +02:00

services: iptables: Provide a default value.

There doesn't seem to be a reason to force users to write

(service iptables-service-type
         (iptables-configuration))

instead of simply

(service iptables-service-type)

This patch provides a default value for the iptables-service-type.

* gnu/services/networking.scm (iptables-service-type): Set default-value.

Change-Id: I93b6c544dfb064c7a0a999549dff61007a38f842
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Giacomo Leidi 2024-08-23 13:40:56 +02:00 committed by Ludovic Courtès
parent 9411a1495f
commit 17e5ca8190
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -2110,6 +2110,7 @@ COMMIT
(define iptables-service-type
(service-type
(name 'iptables)
(default-value (iptables-configuration))
(description
"Run @command{iptables-restore}, setting up the specified rules.")
(extensions