alyssum/samba: bind some directories

This commit is contained in:
Cilly Leang 2026-06-17 21:05:38 +10:00
parent bc3269a814
commit 5c13051b4b
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 83 additions and 84 deletions

View file

@ -1,8 +1,12 @@
{ config, lib, ...}: {
imports = [ ./options.nix ];
fileSystems = lib.mapAttrs (dest: key: {
fileSystems = lib.mapAttrs (dest: key: let
target = if (lib.strings.hasPrefix "/" key)
then key
else "/persist/binds/${key}";
in {
depends = [ "/persist" ];
device = "/persist/binds/${key}";
device = target;
fsType = "none";
options = [ "bind" ];
}) config.me.binds;