From c1d43499cb1470d56e696bda728b7a12471c3018 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Fri, 9 Aug 2024 15:08:22 -0400 Subject: [PATCH] Setting shared hostname --- hosts/fwbook.nix | 1 - modules/lib.nix | 2 +- modules/main.nix | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/fwbook.nix b/hosts/fwbook.nix index ede79b5..41d57bd 100644 --- a/hosts/fwbook.nix +++ b/hosts/fwbook.nix @@ -121,5 +121,4 @@ in ''; }; systemd.sleep.extraConfig = "HibernateDelaySec=30m"; - skyg.core.hostName = "fwbook"; } diff --git a/modules/lib.nix b/modules/lib.nix index 1827f4a..48926b4 100644 --- a/modules/lib.nix +++ b/modules/lib.nix @@ -75,7 +75,7 @@ in name = name; value = makeHLService { hostName = name; - configuration = (import (./hosts + "/${name}.nix") { user = user; }); + configuration = (import (../hosts + "/${name}.nix") { user = user; }); systemStateVersion = systemStateVersion; }; }) diff --git a/modules/main.nix b/modules/main.nix index 6cfaec4..cf26f83 100644 --- a/modules/main.nix +++ b/modules/main.nix @@ -36,6 +36,7 @@ ; # Share defaults skyg.user = user; + skyg.core.hostName = hostName; skyg.home-manager.version = homeManagerVersion; skyg.core.substituters = localNixCaches; system.stateVersion = systemStateVersion;