From 71051a6c58941ca72fbd0b9c57f4593b9f2e2559 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Fri, 18 Oct 2024 19:33:20 -0400 Subject: [PATCH] Add back remote mounts to the Chromebook --- hosts/lacros/system/hardware/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/hosts/lacros/system/hardware/default.nix b/hosts/lacros/system/hardware/default.nix index 3e40098..4b3b692 100644 --- a/hosts/lacros/system/hardware/default.nix +++ b/hosts/lacros/system/hardware/default.nix @@ -17,33 +17,40 @@ "/" = { device = "/dev/disk/by-uuid/e8c9c5a8-4df0-4100-8de6-f08a1a774fad"; fsType = "btrfs"; - options = [ "subvol=@" ]; + options = [ "subvol=@" "noatime" "nodiratime" "discard" ]; }; "/nix" = { device = "/dev/disk/by-uuid/e8c9c5a8-4df0-4100-8de6-f08a1a774fad"; fsType = "btrfs"; - options = [ "subvol=@nix" ]; + options = [ "subvol=@nix" "noatime" "nodiratime" "discard" ]; }; "/var" = { device = "/dev/disk/by-uuid/e8c9c5a8-4df0-4100-8de6-f08a1a774fad"; fsType = "btrfs"; - options = [ "subvol=@var" ]; + options = [ "subvol=@var" "noatime" "nodiratime" "discard" ]; }; "/.snapshots" = { device = "/dev/disk/by-uuid/e8c9c5a8-4df0-4100-8de6-f08a1a774fad"; fsType = "btrfs"; - options = [ "subvol=@snapshots" ]; + options = [ "subvol=@snapshots" "noatime" "nodiratime" "discard" ]; }; "/home" = { device = "/dev/disk/by-uuid/e8c9c5a8-4df0-4100-8de6-f08a1a774fad"; fsType = "btrfs"; - options = [ "subvol=@home" ]; + options = [ "subvol=@home" "noatime" "nodiratime" "discard" ]; }; "/boot" = { device = "/dev/disk/by-uuid/1C76-1006"; fsType = "vfat"; options = [ "fmask=0022" "dmask=0022" ]; }; + + # Remote + "/home/jimbo/JimboNFS" = { + device = "${config.ips.wgSpan}.1:/export/JimboNFS"; + fsType = "nfs4"; + options = ["x-systemd.automount" "_netdev" "nofail" "noauto"]; + }; }; swapDevices = [