I just tried to manually mount it on a test location and it did work, however still getting Permission Denied.
$ mount | grep test
192.168.1.219:/mnt/pool-01/video on /mnt/manual-test type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.41,local_lock=none,addr=192.168.1.219)
and checking IPTables I see this:
Chain nixos-fw (1 references)
pkts bytes target prot opt in out source destination
0 0 nixos-fw-accept 0 – lo * 0.0.0.0/0 0.0.0.0/0
29965 36M nixos-fw-accept 0 – * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
0 0 nixos-fw-accept 6 – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:111
0 0 nixos-fw-accept 6 – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:2049
0 0 nixos-fw-accept 6 – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:20048
0 0 nixos-fw-accept 6 – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:27015
I also re-ran nixos-rebuild switch
just now and rebooted, then journalctl -r | grep nfs
and this is what I got for today and part of yesterday:
jan 19 11:21:38 nixos systemd[1]: var-lib-nfs-rpc_pipefs.mount: Deactivated successfully.
jan 19 10:10:07 nixos sudo[36633]: purefan : TTY=pts/3 ; PWD=/mnt ; USER=root ; COMMAND=/run/wrappers/bin/mount -t nfs 192.168.1.219:/mnt/pool-01/video /mnt/manual-test
jan 19 10:05:30 nixos sudo[34461]: purefan : TTY=pts/2 ; PWD=/mnt ; USER=root ; COMMAND=/run/wrappers/bin/mount -t nfs 192.168.1.219:/mnt/pool-01/video /mnt/manual-test
jan 19 09:58:36 nixos sudo[15778]: purefan : TTY=pts/0 ; PWD=/mnt ; USER=root ; COMMAND=/run/wrappers/bin/mount -t nfs 192.168.1.219:/mnt/pool-01/video /mnt/manual-test
Module libdconfsettings.so without build-id.
#3 0x00007ff26c25789d dconf_gdbus_worker_thread (libdconfsettings.so + 0xb89d)
Module libdconfsettings.so without build-id.
#3 0x00007fa3bd0ee89d dconf_gdbus_worker_thread (libdconfsettings.so + 0xb89d)
jan 18 16:02:09 nixos systemd[1]: var-lib-nfs-rpc_pipefs.mount: Deactivated successfully.
jan 18 15:42:26 nixos kernel: nfs4: Unknown parameter ‘uid’
jan 18 15:42:26 nixos mount[14720]: mount.nfs: an incorrect mount option was specified
jan 18 15:10:31 nixos sudo[12724]: purefan : TTY=pts/1 ; PWD=/home/purefan/projects/nixos ; USER=root ; COMMAND=/run/wrappers/bin/mount -t nfs 192.168.1.219:/mnt/pool-01/video /mnt/manual-test
(please remember I was trying different options for gid and uid)
What strikes me as surprising is that I dont see anything for truenas-video so I journalctl -r | grep truenas
and I see
jan 19 11:22:10 nixos systemd[1]: Mounted /mnt/truenas-video.
jan 19 11:22:10 nixos systemd[1]: Mounting /mnt/truenas-video…
jan 19 11:21:39 nixos systemd[1]: Unmounted /mnt/truenas-video.
jan 19 11:21:39 nixos systemd[1]: mnt-truenas\x2dvideo.mount: Deactivated successfully.
jan 19 11:21:39 nixos systemd[1]: Unmounting /mnt/truenas-video…
jan 19 11:20:40 nixos systemd[1]: Mounted /mnt/truenas-video.
jan 19 11:20:40 nixos systemd[1]: Mounting /mnt/truenas-video…
jan 18 16:02:09 nixos systemd[1]: Unmounted /mnt/truenas-video.
jan 18 16:02:09 nixos systemd[1]: mnt-truenas\x2dvideo.mount: Deactivated successfully.
so truenas-video is being mounted, which I can also confirm here:
$ mount | grep truenas
192.168.1.219:/mnt/pool-01/video on /mnt/truenas-video type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.41,local_lock=none,addr=192.168.1.219)