Nah, this won’t work on NixOS. The error message indicates that the plugin is working fine, but your sudoers config doesn’t currently exempt that command from requiring a password.
Having actually looked at the sudoers man page, the command must point to the absolute path of the command actually running.
The sudoers man page does not specify what happens if the command is a symlink.
So, I see a couple of potential issues:
The gnome extension uses tee from $PATH, who knows which tee is in gnome’s $PATH, this might not come from coreutils-full.
sudo may not follow the symlink to its path in the nix store, and the resolved path might therefore actually be in /run/current-system.
sudo might fully follow the symlink, at which point coreutils-full in turn is probably a symlinkJoin type thing, and therefore the symlink doesn’t resolve to the absolute path you had earlier.
The tee you’re using might not come from coreutils-full at all anyway.
I’d suggest you do the following:
Run sudo tee in your terminal.
If you don’t get a password prompt, it’s the first issue, and you need to figure out which tee gnome is getting.
Have fun if it’s this, I have no idea how to even begin figuring that out without brute forcing store paths.
If you do get a password prompt, it’s one of the latter.
Start by using command -v to figure out where your tee binary is, and then recursively resolve symlinks and keep trying different versions. You can test if your config is working with sudo tee every time you switch.
If that still doesn’t resolve it, the answer is somewhere in the sudoers man page (or just use man sudoers).
Which shows me that we’re using coreutils-full and since I’m using ${pkgs.coreutils-full}as my placeholder I think it should’ve been working but it isn’t for some reason I can’t figure out