workhorse: switch media hard drive
This commit is contained in:
parent
2083f008ad
commit
90b962205c
1 changed files with 24 additions and 19 deletions
|
@ -66,25 +66,30 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# automount
|
imports = [
|
||||||
# ---------
|
# automount
|
||||||
fileSystems."/media" = {
|
# ---------
|
||||||
device = "/dev/disk/by-uuid/f7fa1c0e-ac9f-4955-b4bd-644c1ddb0d89";
|
(let mediaUUID = "b8ba192e-e2aa-47dd-85ec-dcf97ec9310a";
|
||||||
fsType = "ext4";
|
in {
|
||||||
options = [
|
fileSystems."/media" = {
|
||||||
"nofail"
|
device = "/dev/disk/by-uuid/${mediaUUID}";
|
||||||
"noauto"
|
fsType = "ext4";
|
||||||
#"x-systemd.device-timeout=1ms"
|
options = [
|
||||||
];
|
"nofail"
|
||||||
};
|
"noauto"
|
||||||
systemd.mounts = [{
|
#"x-systemd.device-timeout=1ms"
|
||||||
enable = true;
|
];
|
||||||
options = "nofail,noauto";
|
};
|
||||||
type = "ext4";
|
systemd.mounts = [{
|
||||||
wantedBy = [ "multi-user.target" ];
|
enable = true;
|
||||||
what = "/dev/disk/by-uuid/f7fa1c0e-ac9f-4955-b4bd-644c1ddb0d89";
|
options = "nofail,noauto";
|
||||||
where = "/media";
|
type = "ext4";
|
||||||
}];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
what = "/dev/disk/by-uuid/${mediaUUID}";
|
||||||
|
where = "/media";
|
||||||
|
}];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue