hail: add hosts blacklist to work around restricted mode

This commit is contained in:
Astro 2019-11-06 22:11:31 +01:00
parent fad39ef7ac
commit a80f327a4f
1 changed files with 10 additions and 1 deletions

View File

@ -3,6 +3,11 @@
with pkgs;
let
# TODO: make these work in restricted mode
blacklist = {
mucbot = true;
spacemsg = true;
};
physicalHost = host: {
inherit host;
configuration = <nix-config> + "/hosts/${host}/configuration.nix";
@ -46,5 +51,9 @@ in
};
in
[ (part "config") (part "activator") ]
) hosts
) (
builtins.filter ({ host, ... }:
! (builtins.hasAttr host blacklist)
) hosts
)
)