Skip to content

Commit

Permalink
hosts: carve out host out of local profile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
David Arnold committed Mar 18, 2021
1 parent ab523ef commit 2bd3314
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ let

mkHostConfig = hostName:
let
local = {
host = {
require = [
"${toString ./.}/${hostName}.nix"
];

};
local = {
networking = { inherit hostName; };

_module.args = {
Expand All @@ -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
Expand Down

0 comments on commit 2bd3314

Please sign in to comment.