hail: add hosts blacklist to work around restricted mode
This commit is contained in:
parent
fad39ef7ac
commit
a80f327a4f
11
hail.nix
11
hail.nix
|
@ -3,6 +3,11 @@
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
let
|
let
|
||||||
|
# TODO: make these work in restricted mode
|
||||||
|
blacklist = {
|
||||||
|
mucbot = true;
|
||||||
|
spacemsg = true;
|
||||||
|
};
|
||||||
physicalHost = host: {
|
physicalHost = host: {
|
||||||
inherit host;
|
inherit host;
|
||||||
configuration = <nix-config> + "/hosts/${host}/configuration.nix";
|
configuration = <nix-config> + "/hosts/${host}/configuration.nix";
|
||||||
|
@ -46,5 +51,9 @@ in
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
[ (part "config") (part "activator") ]
|
[ (part "config") (part "activator") ]
|
||||||
) hosts
|
) (
|
||||||
|
builtins.filter ({ host, ... }:
|
||||||
|
! (builtins.hasAttr host blacklist)
|
||||||
|
) hosts
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue