Comments (6)
Hm changing uid and gid doesn't quite seems to work with 9p. Would it be possible to switch to virtiofs?
My current workaround with bindfs:
systemd.mounts = [
{
what = "/var/lib/nextcloud/calendar";
where = "/var/lib/nextcloud/store-apps/calendar";
type = "fuse.bindfs";
options = "uid=997,gid=997";
wantedBy = [ "multi-user.target" ];
enable = true;
}
];
from nixos-shell.
Have you tried setting these mount options on the virtio-9p mounts?
dfltuid attempt to mount as a particular uid
dfltgid attempt to mount with a particular gid
Those are coming from here: https://www.kernel.org/doc/Documentation/filesystems/9p.txt
from nixos-shell.
There is also X-mount.idmap= otherwise: https://github.com/brauner/mount-idmapped
from nixos-shell.
Hm didn't have any luck with these two approaches. Thank you for sharing anyway. Currently I'm trying to use virtiofs but uid and gid mapping as non-root user doesn't seem so simple yet
from nixos-shell.
Would be interesting to have support for this in nixos-shell
from nixos-shell.
Afaik This is not possible with 9p unfortunately.
from nixos-shell.
Related Issues (20)
- Add option to create guest home directory
- Example vm script does not work HOT 2
- Cannot override default net device HOT 2
- virtualisation.msize error HOT 9
- Run one-off command
- How to use nixos-shell modules from a flake.nix file HOT 2
- Easiest way to make an ephemeral VM (reboot to restore)? HOT 3
- Any chance to get the latest version added to nixpkgs? HOT 1
- Failing with current unstable HOT 3
- vm_forward.nix example passes net option twice HOT 1
- Graphical log-in not working HOT 2
- Can't access custom nixos configuration attr
- Odd file permissions? HOT 1
- jq impurity in flake mode
- unset `NIX_PATH` causes nixos-shell to not work
- The option virtualisation.* does not exist HOT 4
- nixos-shell broken with `auto-allocate-uids = true` HOT 3
- Broken shell..cant install! HOT 3
- Mounting host dirs when running Nixos-Shell with Flake HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixos-shell.