feat: volume mounts and permission changes for runescape
This commit is contained in:
parent
4944f2ba36
commit
65cd00e053
3 changed files with 25 additions and 2 deletions
|
@ -27,6 +27,8 @@
|
|||
./vm.nix
|
||||
(import ./kvmfr.nix { std = inputs.nix-std.lib; lib = lib; pkgs = pkgs; config = config; })
|
||||
./libvirtd.nix
|
||||
|
||||
./osrs.nix
|
||||
];
|
||||
|
||||
# So that I can get to the netgear router
|
||||
|
@ -184,8 +186,6 @@
|
|||
### System software
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.bolt-launcher
|
||||
|
||||
pkgs.git
|
||||
pkgs.gdu
|
||||
|
||||
|
|
18
nixos/osrs.nix
Normal file
18
nixos/osrs.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
let
|
||||
boltLauncherRuneliteDir = "/home/evar/.var/app/com.adamcake.Bolt/data/bolt-launcher/.runelite";
|
||||
sharedRuneliteDir = "/home/evar/Virtio Shared/.runelite";
|
||||
|
||||
mountSharedRuneliteDir = dir: {
|
||||
"${boltLauncherRuneliteDir}/${dir}" = {
|
||||
depends = [ "/home/evar" ];
|
||||
device = "${sharedRuneliteDir}/${dir}";
|
||||
fsType = "none";
|
||||
options = [ "bind" "rwx" ];
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
fileSystems = mountSharedRuneliteDir "loots" //
|
||||
mountSharedRuneliteDir "screenshots" //
|
||||
mountSharedRuneliteDir "supplies-tracker";
|
||||
}
|
|
@ -227,6 +227,11 @@ in {
|
|||
|
||||
"valid users" = "evar";
|
||||
|
||||
# POSIX ACE entry maps to Full Control ACL in windows
|
||||
"acl map full control" = "yes";
|
||||
|
||||
"force create mode" = 0777;
|
||||
|
||||
"read only" = "no";
|
||||
"public" = "no";
|
||||
"guest ok" = "no";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue