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

View File

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