Initial commit (current config)

This commit is contained in:
Lgmrszd 2023-09-09 17:31:01 +03:00
commit b68ac28949
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE
8 changed files with 744 additions and 0 deletions

34
mounts.nix Normal file
View file

@ -0,0 +1,34 @@
{ 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;
};
}
];
}