flakes/modules/binds.nix

14 lines
327 B
Nix
Raw Normal View History

{ config, lib, ...}: {
imports = [ ./options.nix ];
2026-06-17 21:05:38 +10:00
fileSystems = lib.mapAttrs (dest: key: let
target = if (lib.strings.hasPrefix "/" key)
then key
else "/persist/binds/${key}";
in {
depends = [ "/persist" ];
2026-06-17 21:05:38 +10:00
device = target;
fsType = "none";
options = [ "bind" ];
}) config.me.binds;
}