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 divnix#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 2961c1e commit 886171f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hosts/default.nix
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 886171f

Please sign in to comment.