1
0
Fork 0

mediaserver: mount nfs shares on boot

This commit is contained in:
Daniel Kempkens 2023-04-27 23:49:05 +02:00
parent bd668ba061
commit 250bc99e3b
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 8 additions and 42 deletions

View file

@ -22,6 +22,7 @@
systemd = { systemd = {
mounts = [ mounts = [
{ {
wantedBy = [ "multi-user.target" ];
type = "nfs"; type = "nfs";
mountConfig = { mountConfig = {
Options = "noatime,nconnect=16"; Options = "noatime,nconnect=16";
@ -31,6 +32,7 @@
} }
{ {
wantedBy = [ "multi-user.target" ];
type = "nfs"; type = "nfs";
mountConfig = { mountConfig = {
Options = "noatime,nconnect=16"; Options = "noatime,nconnect=16";
@ -40,6 +42,7 @@
} }
{ {
wantedBy = [ "multi-user.target" ];
type = "nfs"; type = "nfs";
mountConfig = { mountConfig = {
Options = "noatime,nconnect=16"; Options = "noatime,nconnect=16";
@ -49,6 +52,7 @@
} }
{ {
wantedBy = [ "multi-user.target" ];
type = "nfs"; type = "nfs";
mountConfig = { mountConfig = {
Options = "noatime,nconnect=16"; Options = "noatime,nconnect=16";
@ -58,6 +62,7 @@
} }
{ {
wantedBy = [ "multi-user.target" ];
type = "nfs"; type = "nfs";
mountConfig = { mountConfig = {
Options = "noatime,nconnect=16"; Options = "noatime,nconnect=16";
@ -67,6 +72,7 @@
} }
{ {
wantedBy = [ "multi-user.target" ];
type = "nfs"; type = "nfs";
mountConfig = { mountConfig = {
Options = "noatime,nconnect=16"; Options = "noatime,nconnect=16";
@ -76,6 +82,7 @@
} }
{ {
wantedBy = [ "multi-user.target" ];
type = "nfs"; type = "nfs";
mountConfig = { mountConfig = {
Options = "noatime,nconnect=16"; Options = "noatime,nconnect=16";
@ -85,6 +92,7 @@
} }
{ {
wantedBy = [ "multi-user.target" ];
type = "nfs"; type = "nfs";
mountConfig = { mountConfig = {
Options = "noatime,nconnect=16"; Options = "noatime,nconnect=16";
@ -93,47 +101,5 @@
where = "/mnt/media/YTDL"; where = "/mnt/media/YTDL";
} }
]; ];
automounts = [
{
wantedBy = [ "multi-user.target" ];
where = "/mnt/downloads";
}
{
wantedBy = [ "multi-user.target" ];
where = "/mnt/media/TV Shows";
}
{
wantedBy = [ "multi-user.target" ];
where = "/mnt/media/Documentaries";
}
{
wantedBy = [ "multi-user.target" ];
where = "/mnt/media/Anime";
}
{
wantedBy = [ "multi-user.target" ];
where = "/mnt/media/Movies";
}
{
wantedBy = [ "multi-user.target" ];
where = "/mnt/media/Deutsche Serien";
}
{
wantedBy = [ "multi-user.target" ];
where = "/mnt/media/Deutsche Filme";
}
{
wantedBy = [ "multi-user.target" ];
where = "/mnt/media/YTDL";
}
];
}; };
} }