From 943917fab57a75c25899fedab5c7087e79a57f99 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Sun, 27 Oct 2024 11:40:25 +0100 Subject: underworld: mount second drive as osiris user --- hosts/underworld/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'hosts/underworld/default.nix') diff --git a/hosts/underworld/default.nix b/hosts/underworld/default.nix index 3067b93..cf21e1d 100644 --- a/hosts/underworld/default.nix +++ b/hosts/underworld/default.nix @@ -2,6 +2,7 @@ pkgs, flakeRoot, inputs, + config, ... }: { @@ -44,6 +45,7 @@ "network" "podman" ]; + uid = 1001; }; }; nix.settings.trusted-users = [ "osiris" ]; @@ -51,7 +53,17 @@ fileSystems."/mnt/drive2" = { # No clue how that counts as an UUID, but blkid says so device = "/dev/disk/by-uuid/682460BD2460903C"; - fsType = "ntfs"; + fsType = "ntfs-3g"; + options = [ + # boot options for fstab. Search up fstab mount options you can use + "rw" # Read-write permissions for all users + "exec" # Permit execution of binaries and other executable files + "suid" + "nofail" # Prevent system from failing if this drive doesn't mount + "umask=002" # default perissions rwxrwxr-x + "uid=${toString config.users.users.osiris.uid}" + "X-mount.owner=osiris" + ]; }; # This value determines the NixOS release from which the default -- cgit v1.3.1