Stop automounting USB and SD cards

This commit is contained in:
coolneng 2022-10-30 13:24:40 +01:00
parent 15871451e0
commit ff58df1fa2
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 3 additions and 37 deletions

View File

@ -84,18 +84,6 @@
# Automount external storage
systemd.mounts = [
# USB
{
what = "/dev/sda1";
where = "/usb";
mountConfig = { TimeoutSec = "5"; };
}
# SD card
{
what = "/dev/mmcblk0p1";
where = "/sdcard";
mountConfig = { TimeoutSec = "5"; };
}
# UGent Samba
{
what = "//files.ugent.be/akasroua/home";
@ -107,18 +95,6 @@
}
];
systemd.automounts = [
# USB
{
where = "/usb";
automountConfig = { TimeoutIdleSec = "5"; };
wantedBy = [ "default.target" ];
}
# SD card
{
where = "/sdcard";
automountConfig = { TimeoutIdleSec = "5"; };
wantedBy = [ "default.target" ];
}
# UGent Samba
{
where = "/ugent";

View File

@ -23,19 +23,14 @@
fsType = "zfs";
};
fileSystems."/sdcard" =
{ device = "systemd-1";
fsType = "autofs";
};
fileSystems."/ugent" =
{ device = "systemd-1";
fsType = "autofs";
};
fileSystems."/usb" =
{ device = "systemd-1";
fsType = "autofs";
fileSystems."/tmp" =
{ device = "syscea/ephemeral/tmp";
fsType = "zfs";
};
fileSystems."/home/coolneng" =
@ -43,11 +38,6 @@
fsType = "zfs";
};
fileSystems."/tmp" =
{ device = "syscea/ephemeral/tmp";
fsType = "zfs";
};
fileSystems."/home/coolneng/Downloads" =
{ device = "syscea/stateful/home/downloads";
fsType = "zfs";