diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-10-27 11:40:25 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-10-27 11:51:56 +0100 |
| commit | 943917fab57a75c25899fedab5c7087e79a57f99 (patch) | |
| tree | 3d173401960ba32a082d5ec860c02cc0d0fdc065 | |
| parent | 58e9372af49d53edec6c80eeeedc3b0e9a5252f9 (diff) | |
underworld: mount second drive as osiris user
| -rw-r--r-- | hosts/underworld/default.nix | 14 |
1 files changed, 13 insertions, 1 deletions
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 |
