From c2efad829d5293262bad6809ac118db846109362 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 12 Feb 2021 11:19:36 -0500 Subject: [PATCH] kuro: add /usr/store mount And automount it (and /usr/drive) --- hosts/kuro/README.org | 10 ++++++++++ hosts/kuro/hardware-configuration.nix | 7 ++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/hosts/kuro/README.org b/hosts/kuro/README.org index 57e38562..e6a4805f 100644 --- a/hosts/kuro/README.org +++ b/hosts/kuro/README.org @@ -40,6 +40,16 @@ mkfs.ext4 -L vm2 /dev/sdb1 #+END_SRC ** Set up backup file system +#+BEGIN_SRC sh +parted /dev/sda -- mklabel gpt +parted /dev/sda -- mkpart primary ext4 0% 100% +mkfs.ext4 -L store /dev/sda +#+END_SRC + +** +Set up backup file system+ +Backup was moved to an NAS, so this is no longer needed. It's kept as a +reference. + #+BEGIN_SRC sh # 2x 1TB mirrored backup zpool create -R /mnt \ diff --git a/hosts/kuro/hardware-configuration.nix b/hosts/kuro/hardware-configuration.nix index 361c42ba..9a083880 100644 --- a/hosts/kuro/hardware-configuration.nix +++ b/hosts/kuro/hardware-configuration.nix @@ -75,7 +75,12 @@ "/usr/drive" = { device = "kiiro:/volume1/homes/hlissner/Drive"; fsType = "nfs"; - options = [ "nofail" "noauto" "x-systemd.automount" ]; + options = [ "nofail" "noauto" "x-systemd.automount" "x-systemd.idle-timeout=5min" ]; + }; + "/usr/store" = { + device = "/dev/disk/by-label/store"; + fsType = "ext4"; + options = [ "noauto" "noatime" "x-systemd.automount" "x-systemd.idle-timeout=5min" ]; }; }; swapDevices = [];