servo: persist more specifically the /var/lib/uninsane/media directory
This commit is contained in:
parent
db892273ac
commit
53d76920e4
|
@ -82,14 +82,13 @@
|
||||||
};
|
};
|
||||||
sane.fs."/mnt/usb-hdd".mount = {};
|
sane.fs."/mnt/usb-hdd".mount = {};
|
||||||
|
|
||||||
sane.persist.sys.byStore.plaintext = [
|
sane.persist.sys.byStore.plaintext = [{
|
||||||
# TODO: this is overly broad; only need media and share directories to be persisted
|
path = "/var/lib/uninsane/media";
|
||||||
{ user = "colin"; group = "users"; path = "/var/lib/uninsane"; method = "bind"; }
|
method = "bind"; #< this HAS to be `bind` if we're going to persist the whole thing but create subdirs, as below.
|
||||||
];
|
user = "colin";
|
||||||
# force some problematic directories to always get correct permissions:
|
group = "media";
|
||||||
sane.fs."/var/lib/uninsane/media".dir.acl = {
|
mode = "0755";
|
||||||
user = "colin"; group = "media"; mode = "0775";
|
}];
|
||||||
};
|
|
||||||
sane.fs."/var/lib/uninsane/media/archive".dir = {};
|
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)
|
# 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 = ''
|
sane.fs."/var/lib/uninsane/media/archive/README.md".file.text = ''
|
||||||
|
@ -133,8 +132,8 @@
|
||||||
{
|
{
|
||||||
user = "colin";
|
user = "colin";
|
||||||
group = "users";
|
group = "users";
|
||||||
mode = "0777";
|
mode = "0775";
|
||||||
path = "/var/lib/uninsane/media/datasets";
|
path = "/var/lib/uninsane/datasets";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user