From f58c3094abe55e42ade55d3f70b9fe523a116300 Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Mon, 18 May 2026 18:44:26 +0200 Subject: (services networking): install a service in aisaka to ensure interfaces are up before using them --- deployment/services/networking.scm | 28 ++++++++++++++++++++++++++++ deployment/system.scm | 3 +++ deployment/system/aisaka.scm | 3 ++- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 deployment/services/networking.scm (limited to 'deployment') diff --git a/deployment/services/networking.scm b/deployment/services/networking.scm new file mode 100644 index 0000000..a205fc4 --- /dev/null +++ b/deployment/services/networking.scm @@ -0,0 +1,28 @@ +;;; SPDX-License-Identifier: GPL-3.0-or-later +;;; SPDX-FileCopyrightText: 2026 Marek Paśnikowski + +;;; COPYRIGHT NOTICE +;;; +;;; Copyright 2026, Marek Paśnikowski + +;;; LICENSE NOTICE +;;; +;;; This library is free software: you can redistribute it and/or modify it under the terms of +;;; the GNU General Public License as published by the Free Software Foundation, +;;; either version 3 of the License, or (at your option) any later version. +;;; +;;; This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +;;; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +;;; See the GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License along with this library. +;;; If not, see . + +(define-module (deployment services networking) + #:export (network-online-service-aisaka) + #:use-module ((sovereign services networking) + #:prefix sovereign:services:networking:)) + +(define network-online-service-aisaka sovereign:services:networking:network-online-throwaway-service) + +;;; EOF diff --git a/deployment/system.scm b/deployment/system.scm index 3d36d8c..ea7e6af 100644 --- a/deployment/system.scm +++ b/deployment/system.scm @@ -31,6 +31,8 @@ #:prefix deployment:services:mail:) #:use-module ((deployment services matrix) #:prefix deployment:services:matrix:) + #:use-module ((deployment services networking) + #:prefix deployment:services:networking:) #:use-module ((deployment services web) #:prefix deployment:services:web:) #:use-module ((deployment system aisaka) @@ -132,6 +134,7 @@ deployment:services:dns:knot-service-aisaka deployment:services:databases:matrix-postgresql-service deployment:services:matrix:matrix-service-aisaka + deployment:services:networking:network-online-service-aisaka deployment:services:web:nginx-service-aisaka deployment:system:aisaka:offload-rakan deployment:system:aisaka:radicale diff --git a/deployment/system/aisaka.scm b/deployment/system/aisaka.scm index 49d28a3..17636d1 100644 --- a/deployment/system/aisaka.scm +++ b/deployment/system/aisaka.scm @@ -297,7 +297,8 @@ (gnu:services:shepherd:shepherd-service (provision (list 'networking)) (requirement (list 'network-enp2s0-table - 'network-enp2s0-route-default)) + 'network-enp2s0-route-default + 'network-online)) (one-shot? #t) (respawn? #f) (start #~(const #t)) -- cgit v1.3