Added private submodule. Started using secrets.

This commit is contained in:
kat witch 2021-03-02 02:42:47 +00:00
parent e47deebca2
commit b0e4c31d6e
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
6 changed files with 19 additions and 2 deletions

View file

@ -1,4 +1,5 @@
{ pkgs, hostsDir ? ../config/hosts
{ pkgs, hostsDir ? ../config/hosts,
privateHostsDir ? ../config/private/hosts
, commonImports ? [ ../config/common ../modules ], pkgsPath ? ../pkgs }:
with pkgs.lib;
@ -12,6 +13,7 @@ rec {
_module.args = { inherit hosts profiles; };
imports = [
(import (hostsDir + "/${hostName}/configuration.nix"))
(import (privateHostsDir + "/${hostName}/configuration.nix"))
../modules/deploy
] ++ commonImports;
networking = { inherit hostName; };