[Server] Automount unlocked FRA

This commit is contained in:
Malte Tammena 2021-08-25 13:29:41 +02:00
parent f19b41a3c6
commit 51e042095f

View file

@ -6,7 +6,6 @@ let
description = "Unlock luks encrypted device '${label}'";
bindsTo = [ "dev-${label}.device" ];
after = [ "dev-${label}.device" ];
wantedBy = [ "default.target" ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
@ -52,14 +51,15 @@ in {
systemd.services."luks-open-BER" = unlockLuksService "BER" "/root/keys/ber";
systemd.services."luks-open-LEJ" = unlockLuksService "LEJ" "/root/keys/lej";
# systemd.mounts = [
# { what = "/dev/mapper/FRA";
# where = "/srv/fra";
# type = "ext4";
# requires = [ "luks-open-fra.service" ];
# after = [ "luks-open-fra.service" ];
# }
# ];
systemd.mounts = [
{ what = "/dev/mapper/FRAopened";
where = "/srv/fra";
type = "ext4";
wantedBy = [ "default.target" ];
requires = [ "luks-open-FRA.service" ];
after = [ "luks-open-FRA.service" ];
}
];
# services.restic.server = {
# enable = true;