mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-14 15:48:21 +01:00
test
This commit is contained in:
parent
ac8180a74d
commit
8da5147ff4
4 changed files with 4 additions and 8 deletions
34
hosts/laptop/mounts.nix
Normal file
34
hosts/laptop/mounts.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue