From 9e7deadfb50591546027f1f4d64a6abb25560610 Mon Sep 17 00:00:00 2001
From: clerie <git@clerie.de>
Date: Thu, 20 Mar 2025 20:07:06 +0100
Subject: [PATCH] hosts/krypton,hosts/zinc: Migrate to systemd-network

---
 hosts/krypton/network.nix    | 4 +++-
 hosts/zinc/configuration.nix | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/hosts/krypton/network.nix b/hosts/krypton/network.nix
index 4197c76..fb71faf 100644
--- a/hosts/krypton/network.nix
+++ b/hosts/krypton/network.nix
@@ -1,7 +1,9 @@
 { ... }:
 
 {
-  services.wg-clerie = {
+  profiles.clerie.common-networking.enable = true;
+
+  profiles.clerie.wg-clerie = {
     enable = true;
     ipv6s = [ "2a01:4f8:c0c:15f1::8011/128" ];
     ipv4s = [ "10.20.30.11/32" ];
diff --git a/hosts/zinc/configuration.nix b/hosts/zinc/configuration.nix
index 13a428a..07c0747 100644
--- a/hosts/zinc/configuration.nix
+++ b/hosts/zinc/configuration.nix
@@ -11,6 +11,8 @@
       ./programs.nix
     ];
 
+  profiles.clerie.common-networking.enable = true;
+
   # Use the systemd-boot EFI boot loader.
   boot.loader.systemd-boot.enable = true;
   boot.loader.efi.canTouchEfiVariables = true;
@@ -25,7 +27,7 @@
 
   boot.initrd.systemd.enable = false;
 
-  services.wg-clerie = {
+  profiles.clerie.wg-clerie = {
     enable = true;
     ipv6s = [ "2a01:4f8:c0c:15f1::8109/128" ];
     ipv4s = [ "10.20.30.109/32" ];