mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
vanadium: setup systemd mount for seagate drive
This commit is contained in:
parent
26399d7220
commit
60b130a65d
4 changed files with 39 additions and 9 deletions
|
|
@ -1,3 +1,5 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
|
|
@ -24,15 +26,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
"/mnt/seagate" = {
|
||||
device = "/dev/disk/by-uuid/acd2fb5c-b976-4bc6-9379-724f4982042c";
|
||||
fsType = "ext4";
|
||||
options = [
|
||||
"noauto"
|
||||
"user"
|
||||
];
|
||||
};
|
||||
|
||||
"/home/leana/mnt/tdk32" = {
|
||||
device = "/dev/disk/by-uuid/EF28-13EC";
|
||||
fsType = "vfat";
|
||||
|
|
@ -54,4 +47,20 @@
|
|||
};
|
||||
};
|
||||
|
||||
environment.etc."crypttab".text = ''
|
||||
seagate /dev/disk/by-uuid/f68b6704-670a-4050-b032-2d553070139a ${config.age.secrets.seagate_pwd.path} noauto
|
||||
'';
|
||||
|
||||
systemd.mounts = [
|
||||
{
|
||||
what = "/dev/mapper/seagate";
|
||||
where = "/mnt/seagate";
|
||||
requires = [ "systemd-cryptsetup@seagate.service" ];
|
||||
after = [ "systemd-cryptsetup@seagate.service" ];
|
||||
unitConfig = {
|
||||
PropagatesStopTo = [ "systemd-cryptsetup@seagate.service" ];
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue