From ea73362f0ea015cca140b3ecfa5e9694518480aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 22 Dec 2022 01:52:09 +0100 Subject: [PATCH] motd: fix infinite recursion --- modules/c3d2.nix | 14 ++++++++------ modules/motd | 6 ------ 2 files changed, 8 insertions(+), 12 deletions(-) delete mode 100644 modules/motd diff --git a/modules/c3d2.nix b/modules/c3d2.nix index 2f099a96..7ba01192 100644 --- a/modules/c3d2.nix +++ b/modules/c3d2.nix @@ -196,11 +196,13 @@ in }]; }; - networking.interfaces = lib.mkIf (cfg.hq.interface != null) { - "${cfg.hq.interface}".ipv6.addresses = [{ - address = toHqPrivateAddress config.networking.hostName; - prefixLength = 64; - }]; + networking = { + interfaces = lib.mkIf (cfg.hq.interface != null) { + "${cfg.hq.interface}".ipv6.addresses = [{ + address = toHqPrivateAddress config.networking.hostName; + prefixLength = 64; + }]; + }; nameservers = with hostRegistry.dnscache; [ ip4 @@ -221,7 +223,7 @@ in programs = { ssh.knownHosts = let - inherit ((import ../ssh-public-keys.nix)) hosts; + inherit (import ../ssh-public-keys.nix) hosts; list = map (name: { inherit name; diff --git a/modules/motd b/modules/motd deleted file mode 100644 index 8d861030..00000000 --- a/modules/motd +++ /dev/null @@ -1,6 +0,0 @@ - ______ ______ - / / / / / /\ \ \ -/ / / / / / \ \ \ -\ \ \ \ / / / / / - \_\_\_\/_/ /_/_/ -