2024-01-13 19:46:14 +01:00
|
|
|
{
|
2023-09-09 16:31:01 +02:00
|
|
|
systemd.mounts = [
|
|
|
|
{
|
|
|
|
where = "/mounts/my_data";
|
2024-01-12 21:09:13 +01:00
|
|
|
what = "/dev/disk/by-label/My_Data";
|
2023-09-09 16:31:01 +02:00
|
|
|
type = "ntfs3";
|
|
|
|
options = "defaults,exec,noauto,prealloc,uid=1000,gid=100";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
where = "/mounts/windows";
|
2024-01-12 21:09:13 +01:00
|
|
|
what = "/dev/disk/by-label/WinPart";
|
2023-09-09 16:31:01 +02:00
|
|
|
type = "ntfs3";
|
|
|
|
options = "defaults,exec,noauto,prealloc,uid=1000,gid=100";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
systemd.automounts = [
|
|
|
|
{
|
|
|
|
where = "/mounts/my_data";
|
|
|
|
wantedBy = ["multi-user.target"];
|
|
|
|
automountConfig = {
|
|
|
|
TimeoutIdleSec = 901;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
where = "/mounts/windows";
|
|
|
|
wantedBy = ["multi-user.target"];
|
|
|
|
automountConfig = {
|
|
|
|
TimeoutIdleSec = 901;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|