diff --git a/nixos/default.nix b/nixos/default.nix index 5dca24c..0ec84cd 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -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 diff --git a/nixos/osrs.nix b/nixos/osrs.nix new file mode 100644 index 0000000..cef3b45 --- /dev/null +++ b/nixos/osrs.nix @@ -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"; +} \ No newline at end of file diff --git a/nixos/vm.nix b/nixos/vm.nix index c987257..f5893e0 100644 --- a/nixos/vm.nix +++ b/nixos/vm.nix @@ -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";