alyssum/samba: bind some directories
This commit is contained in:
parent
bc3269a814
commit
5c13051b4b
2 changed files with 83 additions and 84 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue