workhorse: switch media hard drive

This commit is contained in:
Ingolf Wagner 2019-12-25 17:37:29 +13:00
parent 2083f008ad
commit 90b962205c
Signed by: palo
GPG key ID: 76BF5F1928B9618B

View file

@ -66,10 +66,13 @@ in {
};
};
imports = [
# automount
# ---------
(let mediaUUID = "b8ba192e-e2aa-47dd-85ec-dcf97ec9310a";
in {
fileSystems."/media" = {
device = "/dev/disk/by-uuid/f7fa1c0e-ac9f-4955-b4bd-644c1ddb0d89";
device = "/dev/disk/by-uuid/${mediaUUID}";
fsType = "ext4";
options = [
"nofail"
@ -82,9 +85,11 @@ in {
options = "nofail,noauto";
type = "ext4";
wantedBy = [ "multi-user.target" ];
what = "/dev/disk/by-uuid/f7fa1c0e-ac9f-4955-b4bd-644c1ddb0d89";
what = "/dev/disk/by-uuid/${mediaUUID}";
where = "/media";
}];
})
];
}