servo: persist more specifically the /var/lib/uninsane/media directory

This commit is contained in:
Colin 2024-03-05 18:39:23 +00:00
parent db892273ac
commit 53d76920e4

View File

@ -82,14 +82,13 @@
};
sane.fs."/mnt/usb-hdd".mount = {};
sane.persist.sys.byStore.plaintext = [
# TODO: this is overly broad; only need media and share directories to be persisted
{ user = "colin"; group = "users"; path = "/var/lib/uninsane"; method = "bind"; }
];
# force some problematic directories to always get correct permissions:
sane.fs."/var/lib/uninsane/media".dir.acl = {
user = "colin"; group = "media"; mode = "0775";
};
sane.persist.sys.byStore.plaintext = [{
path = "/var/lib/uninsane/media";
method = "bind"; #< this HAS to be `bind` if we're going to persist the whole thing but create subdirs, as below.
user = "colin";
group = "media";
mode = "0755";
}];
sane.fs."/var/lib/uninsane/media/archive".dir = {};
# this is file.text instead of symlink.text so that it may be read over a remote mount (where consumers might not have any /nix/store/.../README.md path)
sane.fs."/var/lib/uninsane/media/archive/README.md".file.text = ''
@ -133,8 +132,8 @@
{
user = "colin";
group = "users";
mode = "0777";
path = "/var/lib/uninsane/media/datasets";
mode = "0775";
path = "/var/lib/uninsane/datasets";
}
];