programs: discord: lift to own file

This commit is contained in:
2024-10-01 05:45:28 +00:00
parent c7abda9393
commit 8795212c67
3 changed files with 23 additions and 19 deletions

View File

@@ -489,25 +489,6 @@ in
dig.sandbox.net = "all";
# creds, but also 200 MB of node modules, etc
discord.persist.byStore.private = [ ".config/discord" ];
discord.suggestedPrograms = [ "xwayland" ];
discord.sandbox.wrapperType = "inplace"; #< package contains broken symlinks that my wrapper can't handle
discord.sandbox.whitelistAudio = true;
discord.sandbox.whitelistDbus = [ "user" ]; # needed for xdg-open
discord.sandbox.whitelistWayland = true;
discord.sandbox.whitelistX = true;
discord.sandbox.net = "clearnet";
discord.sandbox.extraHomePaths = [
# still needs these paths despite it using the portal's file-chooser :?
"Pictures/cat"
"Pictures/Screenshots"
"Pictures/servo-macros"
"Videos/local"
"Videos/servo"
"tmp"
];
# dtc -o may write a file, so needs directory access
dtc.sandbox.autodetectCliPaths = "existingFileOrParent";

View File

@@ -37,6 +37,7 @@
./deadd-notification-center
./dialect.nix
./dino.nix
./discord.nix
./dissent.nix
./dtrx.nix
./eg25-control.nix

View File

@@ -0,0 +1,22 @@
{ ... }: {
sane.programs.discord = {
# creds, but also 200 MB of node modules, etc
persist.byStore.private = [ ".config/discord" ];
suggestedPrograms = [ "xwayland" ];
sandbox.wrapperType = "inplace"; #< package contains broken symlinks that my wrapper can't handle
sandbox.whitelistAudio = true;
sandbox.whitelistDbus = [ "user" ]; # needed for xdg-open
sandbox.whitelistWayland = true;
sandbox.whitelistX = true;
sandbox.net = "clearnet";
sandbox.extraHomePaths = [
# still needs these paths despite it using the portal's file-chooser :?
"Pictures/cat"
"Pictures/Screenshots"
"Pictures/servo-macros"
"Videos/local"
"Videos/servo"
"tmp"
];
};
}