sam: Mount UTM host share
This requires that I explicitly specify `chandler`'s UID and GID.
This commit is contained in:
parent
3f464bd791
commit
ff4f0a88fa
2 changed files with 27 additions and 0 deletions
|
|
@ -62,7 +62,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
users.groups.users.gid = 100;
|
||||||
users.users.chandler = {
|
users.users.chandler = {
|
||||||
|
uid = 1000;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Chandler Swift";
|
description = "Chandler Swift";
|
||||||
extraGroups = [ "networkmanager" "wheel" "docker"];
|
extraGroups = [ "networkmanager" "wheel" "docker"];
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,31 @@
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/mnt/utm" = {
|
||||||
|
device = "share";
|
||||||
|
fsType = "9p";
|
||||||
|
options = [
|
||||||
|
"trans=virtio"
|
||||||
|
"version=9p2000.L"
|
||||||
|
"rw"
|
||||||
|
"_netdev"
|
||||||
|
"nofail"
|
||||||
|
"auto"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home/chandler/shared_with_host" = {
|
||||||
|
device = "/mnt/utm";
|
||||||
|
fsType = "fuse.bindfs";
|
||||||
|
options = [
|
||||||
|
"map=502/${builtins.toString config.users.users.chandler.uid}:@20/@${builtins.toString config.users.groups.users.gid}"
|
||||||
|
"x-systemd.requires=/mnt/utm"
|
||||||
|
"_netdev"
|
||||||
|
"nofail"
|
||||||
|
"auto"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[ { device = "/dev/disk/by-uuid/6c923fd7-5b0a-4dd5-b1ce-6cd4ea144275"; }
|
[ { device = "/dev/disk/by-uuid/6c923fd7-5b0a-4dd5-b1ce-6cd4ea144275"; }
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue