hosts: steamdeck: make sdcard automount with udev
This commit is contained in:
parent
89eb52b102
commit
fff7506433
@ -38,12 +38,17 @@
|
|||||||
|
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
|
|
||||||
services.btrfs.autoScrub = {
|
services = {
|
||||||
enable = true;
|
btrfs.autoScrub = {
|
||||||
interval = "monthly";
|
enable = true;
|
||||||
fileSystems = [
|
interval = "monthly";
|
||||||
"/"
|
fileSystems = [
|
||||||
];
|
"/"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
udev.extraRules = ''
|
||||||
|
ACTION=="add", SUBSYSTEM=="block", KERNEL=="mmcblk[0-9]p[0-9]", ENV{ID_FS_USAGE}=="filesystem", RUN{program}+="${pkgs.systemd}/bin/systemd-mount -o noatime,compress-force=zstd:15,ssd_spread,commit=120 --no-block --automount=yes --collect $devnode /run/media/mmcblk0p1"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.btrbk = {
|
services.btrbk = {
|
||||||
@ -119,11 +124,11 @@
|
|||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvolid=5,discard=async" ];
|
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvolid=5,discard=async" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/sdcard" =
|
# fileSystems."/sdcard" =
|
||||||
{ device = "/dev/disk/by-label/sdcard";
|
# { device = "/dev/disk/by-label/sdcard";
|
||||||
fsType = "ext4";
|
# fsType = "ext4";
|
||||||
options = [ "nofail,noauto,users,x-systemd.automount" ];
|
# options = [ "nofail,noauto,users,x-systemd.automount" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
fileSystems."/mnt/Pluto" =
|
fileSystems."/mnt/Pluto" =
|
||||||
{ device = "jupiter:/Pluto";
|
{ device = "jupiter:/Pluto";
|
||||||
|
Loading…
Reference in New Issue
Block a user