From b2065c415569e745aa342ee99240e5e79cbbd4fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Sat, 9 Nov 2024 16:55:39 +0100 Subject: [PATCH] nas: add sd-card to shared storage --- systems/zaatar/nas.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/systems/zaatar/nas.nix b/systems/zaatar/nas.nix index 21f2e71..3dc01a6 100644 --- a/systems/zaatar/nas.nix +++ b/systems/zaatar/nas.nix @@ -9,10 +9,22 @@ gid = 7452; }; - fileSystems."/nas" = { + fileSystems."/media/sd" = { + device = "/dev/disk/by-id/5E4S5_0x4c585d15-part1"; + fsType = "ext4"; + options = [ + "nofail" + "defaults" + "uid=${toString config.users.extraUsers.nas.uid}" + "gid=${toString config.users.extraGroups.nas.gid}" + ]; + }; + + fileSystems."/media/hdd" = { device = "/dev/disk/by-id/0x50014ee658872039-part1"; fsType = "ntfs"; options = [ # ref https://askubuntu.com/a/113746 + "nofail" "defaults" "nls=utf8" "umask=000" @@ -42,7 +54,7 @@ map to guest = Bad User ''; shares.nas = { - path = "/nas"; + path = "/media"; browseable = "yes"; writable = "yes"; # "read only" = "no";