mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2024-11-25 12:28:55 +01:00
35 lines
729 B
Nix
35 lines
729 B
Nix
|
{ secrets, ... }:
|
||
|
with secrets.drive-ids; {
|
||
|
systemd.mounts = [
|
||
|
{
|
||
|
where = "/mounts/my_data";
|
||
|
what = mounts.my_data;
|
||
|
type = "ntfs3";
|
||
|
options = "defaults,exec,noauto,prealloc,uid=1000,gid=100";
|
||
|
}
|
||
|
{
|
||
|
where = "/mounts/windows";
|
||
|
what = mounts.windows;
|
||
|
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;
|
||
|
};
|
||
|
}
|
||
|
];
|
||
|
}
|