From 7c1113cd099a3220214ca91fd93308968dbef1d7 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Fri, 11 Aug 2023 17:43:15 +0200 Subject: [PATCH] flake: Expose the sandboxed prismlauncher --- flake.nix | 4 +++- overlays/sandbox.nix | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index 21b4ba4..a1311d7 100644 --- a/flake.nix +++ b/flake.nix @@ -53,10 +53,12 @@ overlays = [ self.overlay + + (import ./overlays/sandbox.nix) ]; }; in { - inherit (pkgs) wayqt dfl-ipc dfl-applications dfl-utils qtgreet xwaylandvideobridge obs-cli rgb_keyboard; + inherit (pkgs) wayqt dfl-ipc dfl-applications dfl-utils qtgreet xwaylandvideobridge obs-cli rgb_keyboard prismlauncher-wrapped; }; }); } diff --git a/overlays/sandbox.nix b/overlays/sandbox.nix index 12726a0..3bf836a 100644 --- a/overlays/sandbox.nix +++ b/overlays/sandbox.nix @@ -26,17 +26,17 @@ in { enableDesktopFile = true; }; - # prismlauncher-wrapped = wrapInSandbox { - # name = "prismlauncher"; - # binary = "${prev.prismlauncher}/bin/prismlauncher"; - # launchScriptName = "prismlauncher-wrapped"; - # mountInHome = [".local/share/PrismLauncher"]; - # additionalMounts = [ - # "/etc/profile" - # ]; - # additionalBlacklist = [ "/mnt" ]; - # chdirTo = "/home/$USER"; - # }; + prismlauncher-wrapped = wrapInSandbox { + name = "prismlauncher"; + binary = "${prev.prismlauncher}/bin/prismlauncher"; + launchScriptName = "prismlauncher-wrapped"; + mountInHome = [".local/share/PrismLauncher"]; + additionalMounts = [ + "/etc/profile" + ]; + additionalBlacklist = [ "/mnt" ]; + chdirTo = "/home/$USER"; + }; steam-wrapped = wrapInSandbox { name = "steam-wrapped";