Move automount configuration to datasync module

This commit is contained in:
2022-02-21 19:05:18 +01:00
parent 1dce59a7cd
commit a71155007c
2 changed files with 29 additions and 30 deletions

View File

@@ -85,36 +85,6 @@ with pkgs;
baseIndex = 1;
};
# Automount external storage
systemd.mounts = [
# USB
{
what = "/dev/sda1";
where = "/usb";
mountConfig = { TimeoutSec = "5"; };
}
# SD card
{
what = "/dev/mmcblk0p1";
where = "/sdcard";
mountConfig = { TimeoutSec = "5"; };
}
];
systemd.automounts = [
# USB
{
where = "/usb";
automountConfig = { TimeoutIdleSec = "5"; };
wantedBy = [ "default.target" ];
}
# SD card
{
where = "/sdcard";
automountConfig = { TimeoutIdleSec = "5"; };
wantedBy = [ "default.target" ];
}
];
# Integrate pass with the browser
programs.browserpass.enable = true;