mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-14 07:38:19 +01:00
laptop: change storage mounts
This commit is contained in:
parent
216bb8b5a8
commit
28e385a147
1 changed files with 13 additions and 14 deletions
|
|
@ -1,16 +1,15 @@
|
|||
{
|
||||
systemd.mounts = [
|
||||
{
|
||||
where = "/mounts/my_data";
|
||||
what = "/dev/disk/by-label/My_Data";
|
||||
type = "ntfs3";
|
||||
options = "defaults,exec,noauto,prealloc,uid=1000,gid=100";
|
||||
}
|
||||
{
|
||||
where = "/mounts/windows";
|
||||
what = "/dev/disk/by-label/WinPart";
|
||||
type = "ntfs3";
|
||||
options = "defaults,exec,noauto,prealloc,uid=1000,gid=100";
|
||||
}
|
||||
];
|
||||
environment.etc.crypttab = {
|
||||
mode = "0600";
|
||||
text = ''
|
||||
shared PARTUUID=7572b70e-36d1-41a8-b425-540b96092ff6 /dev/null tcrypt,tcrypt-veracrypt,tcrypt-keyfile=/root/shared_keyfile
|
||||
'';
|
||||
};
|
||||
|
||||
fileSystems."/mounts/shared" =
|
||||
{ device = "/dev/mapper/shared";
|
||||
fsType = "ntfs3";
|
||||
options = [ "defaults,exec,nosuid,nodev,prealloc,uid=1000,gid=100" ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue