tweak(cachix): restrict ssh substituter to in-network devices

This commit is contained in:
Infinidoge 2022-06-14 23:27:47 -04:00
parent 19bee53519
commit 639f53b652

View file

@ -1,6 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
{ {
nix.settings.substituters = lib.mkIf (config.networking.hostName != "Infini-DESKTOP") nix.settings.substituters = lib.mkIf (config.networking.hostName != "Infini-DESKTOP" && config.info.loc.home)
((if config.info.loc.home then (lib.mkOrder 300) else lib.mkAfter) [ ((if config.info.loc.home then (lib.mkOrder 300) else lib.mkAfter) [
"ssh://infini-desktop" "ssh://infini-desktop"
]); ]);