Closed quantenzitrone closed 1 year ago
{
# mounting the data partition
fileSystems =
{
"/data" = {
device = "/dev/disk/by-label/data";
fsType = "ext4";
};
}
# mapping the data folders into the users home folder
// (builtins.listToAttrs (
builtins.map (
x: {
name = "/home/${config.environment.variables.USERNAME}/" + x;
value = {
device = "/data/" + x;
options = ["bind"];
depends = ["/data"];
};
}
) [
"documents"
"internet"
"music"
"pictures"
"videos"
]
));
}
I would like to bind /home/{documents, internet, music, videos, etc...} to /data/{documents, internet, music, videos, etc...}
Is that already possible? If yes how?