diff --git a/home-manager/sajenim/features/games/default.nix b/home-manager/sajenim/features/games/default.nix index 56fc19a..fe06b63 100644 --- a/home-manager/sajenim/features/games/default.nix +++ b/home-manager/sajenim/features/games/default.nix @@ -3,6 +3,7 @@ { imports = [ ./mangohud.nix + ./runescape.nix ]; home = { @@ -10,12 +11,6 @@ gamemode protonup-ng prismlauncher - runelite ]; - persistence."/persist/home/sajenim" = { - directories = [ - ".runelite" - ]; - }; }; } diff --git a/home-manager/sajenim/features/games/runescape.nix b/home-manager/sajenim/features/games/runescape.nix new file mode 100644 index 0000000..1d0cd74 --- /dev/null +++ b/home-manager/sajenim/features/games/runescape.nix @@ -0,0 +1,20 @@ +{ inputs, lib, ... }: + +{ + imports = [ + inputs.nix-flatpak.homeManagerModules.nix-flatpak + ]; + + services.flatpak.remotes = lib.mkOptionDefault [ + { name = "flathub"; location = "https://dl.flathub.org/repo/flathub.flatpakrepo"; } + { name = "JagexLauncher"; location = "https://jagexlauncher.flatpak.mcswain.dev/JagexLauncher.flatpakrepo"; } + ]; + + services.flatpak.packages = [ + { appId = "org.freedesktop.Platform.Compat.i386/x86_64/23.08"; origin = "flathub"; } + { appId = "org.freedesktop.Platform.GL32.default/x86_64/23.08"; origin = "flathub"; } + { appId = "com.jagex.Launcher"; origin = "JagexLauncher"; } + { appId = "com.jagex.Launcher.ThirdParty.RuneLite"; origin = "JagexLauncher"; } + ]; +} +