CASCADE/common/guzzlord-imports.nix

19 lines
434 B
Nix
Raw Normal View History

2022-10-11 17:28:18 +00:00
{pkgs, lib, config, hostName, ...}:
with lib;
with builtins;
{
options = {};
config = {
fileSystems = mapAttrs' (islandName: islandConf:
nameValuePair "/mnt/guzzlord/${islandName}" {
device = "${islandName}:${islandConf.path}";
fsType = "nfs";
})
(filterAttrs (n: v: v.type == "nfs")
(attrByPath [config.networking.hostName "islands"] {} config.services.guzzlords));
};
}