[Nix-dev] setuid wrappers (fuse/sshfs)
Mathijs Kwik
mathijs at bluescreen303.nl
Tue Jan 3 09:45:06 CET 2012
Hi all,
I like to put every package I use in configuration.nix in
environment.systemPackages.
User-specific packages are all in ~/.nixpkgs/config.nix
So basically. I don't use nix-env --install for separate packages,
hence the default profile is empty.
However, I wanted to use sshfs-fuse. Fuse has a setuid-wrapper for 'fusermount'.
I tried it in my user-specific config.nix first, which didn't work.
Then I tried the system profile. Same problem:
$ sshfs somebox:/ someboxmnt
fusermount: cannot run `/nix/var/nix/profiles/default/bin/fusermount':
No such file or directory
The only way I got it working was by using "nix-env --install fuse" as
root to install it to the default profile.
I would like to just put it in 1 of my 2 nix configs, as I do with all
my packages
Where does this hard-coded path come from?
Thanks,
Mathijs
More information about the nix-dev
mailing list