2022-01-14 17:08:47 +00:00
|
|
|
final: prev:
|
|
|
|
|
|
|
|
let
|
|
|
|
wrapInSandbox = prev.callPackage ../lib/sandbox.nix {};
|
|
|
|
in {
|
2022-03-27 10:30:13 +00:00
|
|
|
discord-app-wrapped = wrapInSandbox {
|
2022-05-03 13:04:01 +00:00
|
|
|
name = "discord-app-wrapped";
|
|
|
|
launchScriptName = "discord-app";
|
|
|
|
binary = "${prev.discord-app}/bin/discord-app";
|
2022-03-27 10:30:13 +00:00
|
|
|
mountInHome = [ ".local/share/discord-app" ];
|
|
|
|
additionalBlacklist = [ "/mnt" ];
|
|
|
|
chdirTo = "/home/$USER";
|
|
|
|
|
2022-05-03 13:04:01 +00:00
|
|
|
preDesktopFilePhase = ''
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
cp -L ${prev.discord}/share/pixmaps/discord.png $out/share/icons/discord.png
|
|
|
|
'';
|
|
|
|
desktopFileAttributes = {
|
2022-03-27 10:30:13 +00:00
|
|
|
name = "discord-app-wrapped";
|
|
|
|
#exec = "discord";
|
|
|
|
icon = "discord";
|
|
|
|
desktopName = "Discord-App (wrapped)";
|
|
|
|
genericName = "Instant Messenger";
|
2022-05-03 13:04:01 +00:00
|
|
|
#categories = [ "Network" "InstantMessaging" ];
|
2022-03-27 10:30:13 +00:00
|
|
|
};
|
2022-05-03 13:04:01 +00:00
|
|
|
enableDesktopFile = true;
|
2022-03-27 10:30:13 +00:00
|
|
|
};
|
|
|
|
|
2023-03-31 22:12:40 +00:00
|
|
|
# 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";
|
|
|
|
# };
|
2022-01-14 17:08:47 +00:00
|
|
|
|
|
|
|
steam-wrapped = wrapInSandbox {
|
2022-04-26 15:14:08 +00:00
|
|
|
name = "steam-wrapped";
|
|
|
|
binary = "${prev.steam}/bin/steam";
|
|
|
|
launchScriptName = "steam";
|
2022-05-13 10:50:06 +00:00
|
|
|
mountInHome = [
|
|
|
|
".steam"
|
|
|
|
".local/share/Steam"
|
|
|
|
"Downloads/Skyrim Mods"
|
|
|
|
];
|
2022-01-14 17:08:47 +00:00
|
|
|
additionalBlacklist = [ "/mnt" ];
|
|
|
|
additionalMounts = [ "/mnt/Storage/Games/SteamLibrary" ];
|
|
|
|
chdirTo = "/home/$USER";
|
2022-05-03 13:04:01 +00:00
|
|
|
|
2022-04-26 15:14:08 +00:00
|
|
|
preDesktopFilePhase = ''
|
|
|
|
cp -Lr ${prev.steam}/share/icons $out/share/icons
|
|
|
|
'';
|
|
|
|
desktopFileAttributes = {
|
|
|
|
name = "steam-wrapped";
|
|
|
|
icon = "steam";
|
|
|
|
desktopName = "Steam (wrapped)";
|
|
|
|
};
|
|
|
|
enableDesktopFile = true;
|
2022-01-14 17:08:47 +00:00
|
|
|
};
|
|
|
|
|
2022-04-26 15:14:08 +00:00
|
|
|
spotify-wrapped = wrapInSandbox {
|
|
|
|
name = "spotify-wrapped";
|
|
|
|
launchScriptName = "spotify";
|
|
|
|
binary = "${prev.spotify}/bin/spotify";
|
2022-01-14 17:08:47 +00:00
|
|
|
additionalBlacklist = [ "/mnt" ];
|
2022-04-26 15:14:08 +00:00
|
|
|
mountInHome = [ ".config/spotify" ];
|
2022-01-14 17:08:47 +00:00
|
|
|
chdirTo = "/home/$USER";
|
2022-04-26 15:14:08 +00:00
|
|
|
|
|
|
|
preDesktopFilePhase = ''
|
|
|
|
cp -Lr ${prev.spotify}/share/icons $out/share/icons
|
|
|
|
'';
|
|
|
|
desktopFileAttributes = {
|
|
|
|
name = "spotify-wrapped";
|
2022-04-26 15:20:56 +00:00
|
|
|
icon = "spotify-client";
|
2022-04-26 15:14:08 +00:00
|
|
|
desktopName = "Spotify (wrapped)";
|
|
|
|
};
|
|
|
|
enableDesktopFile = true;
|
2022-01-14 17:08:47 +00:00
|
|
|
};
|
2022-01-17 20:39:04 +00:00
|
|
|
|
2022-04-26 15:14:08 +00:00
|
|
|
lutris-free-wrapped = wrapInSandbox {
|
|
|
|
name = "lutris-free-wrapped";
|
|
|
|
launchScriptName = "lutris";
|
|
|
|
binary = "${prev.lutris-free}/bin/lutris";
|
2022-01-17 20:39:04 +00:00
|
|
|
additionalBlacklist = [ "/mnt" ];
|
2022-05-13 10:50:06 +00:00
|
|
|
additionalMounts = [
|
|
|
|
"/mnt/Storage/Games/LeagueOfLegends"
|
2022-10-15 10:06:07 +00:00
|
|
|
"/mnt/Storage/Games/Origin"
|
2022-10-15 14:25:00 +00:00
|
|
|
"/mnt/Storage/Games/SteamLibrary"
|
2023-01-19 14:18:23 +00:00
|
|
|
"/mnt/Storage/Games/Uplay"
|
2022-06-15 17:43:12 +00:00
|
|
|
"/mnt/tmp"
|
2022-05-13 10:50:06 +00:00
|
|
|
];
|
2022-04-26 15:14:08 +00:00
|
|
|
mountInHome = [ ".local/share/lutris" ".config/lutris" "Games" ];
|
2022-01-17 20:39:04 +00:00
|
|
|
chdirTo = "/home/$USER";
|
2022-04-26 15:14:08 +00:00
|
|
|
|
|
|
|
preDesktopFilePhase = ''
|
|
|
|
mkdir -p $out/share/
|
|
|
|
cp -Lr ${prev.lutris-free}/share/icons $out/share/icons/
|
|
|
|
'';
|
|
|
|
desktopFileAttributes = {
|
|
|
|
name = "lutris-wrapped";
|
|
|
|
icon = "lutris";
|
|
|
|
desktopName = "Lutris (wrapped)";
|
|
|
|
};
|
|
|
|
enableDesktopFile = true;
|
2022-01-17 20:39:04 +00:00
|
|
|
};
|
2022-02-02 14:55:38 +00:00
|
|
|
|
2022-04-26 15:14:08 +00:00
|
|
|
discord-wrapped = let
|
|
|
|
discordPkg = prev.discord;
|
|
|
|
in wrapInSandbox {
|
|
|
|
name = "discord-wrapped";
|
|
|
|
launchScriptName = "discord";
|
|
|
|
binary = "${discordPkg}/bin/discord";
|
|
|
|
mountInHome = [ ".config/discord" ".config/BetterDiscord" ];
|
2022-02-02 14:55:38 +00:00
|
|
|
additionalBlacklist = [ "/mnt" ];
|
|
|
|
chdirTo = "/home/$USER";
|
2022-04-26 15:14:08 +00:00
|
|
|
|
|
|
|
preDesktopFilePhase = ''
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
cp -L ${discordPkg}/share/pixmaps/discord.png $out/share/icons/discord.png
|
|
|
|
'';
|
|
|
|
desktopFileAttributes = {
|
|
|
|
name = "discord-wrapped";
|
|
|
|
#exec = "discord";
|
|
|
|
icon = "discord";
|
|
|
|
desktopName = "Discord (wrapped)";
|
|
|
|
genericName = "Instant Messenger";
|
|
|
|
#categories = [ "Network" "InstantMessaging" ];
|
|
|
|
};
|
|
|
|
enableDesktopFile = true;
|
|
|
|
};
|
2022-01-14 17:08:47 +00:00
|
|
|
}
|