From 2bd331429d7a89f0f94aeaf36fff6195f25cd240 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Thu, 18 Mar 2021 15:21:06 -0500 Subject: [PATCH] hosts: carve out `host` out of `local` profile To solve #194, we need a way to exclude specifically the host profiles. By proxy, we might be safe to exclude the host configuration as a whole. This change separates the host condfig from other host-local modules so that we can filter it out in the subsequent commit. --- hosts/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hosts/default.nix b/hosts/default.nix index 0a4884ed2..721c71d4d 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -58,11 +58,12 @@ let mkHostConfig = hostName: let - local = { + host = { require = [ "${toString ./.}/${hostName}.nix" ]; - + }; + local = { networking = { inherit hostName; }; _module.args = { @@ -80,7 +81,7 @@ let in dev.os.devosSystem { inherit system specialArgs; - modules = modules // { inherit local lib; }; + modules = modules // { inherit host local lib; }; }; hosts = dev.os.recImport