feat: add script to fix Electron app permissions and update package configuration

This commit is contained in:
2025-03-11 09:50:59 +01:00
parent da3db10d03
commit df04f3c4ac
4 changed files with 59 additions and 4 deletions

View File

@@ -1,6 +1,13 @@
{ pkgs-unstable, pkgs, ... }:
let
# Create a script to fix electron apps
fix-electron-apps = pkgs.writeScriptBin "fix-electron-apps" (builtins.readFile ./fix-electron-apps.sh);
in
{
home.packages = with pkgs; [
# Custom scripts
fix-electron-apps
# GUI Application
## Utilities
mission-center # Task Manager like Windows 11
@@ -53,4 +60,23 @@
virt-manager
virt-viewer
];
# Fix for all Electron apps' chrome-sandbox
home.activation.fixElectronChromeSandbox = ''
echo ""
echo "=============================================="
echo "IMPORTANT: Electron Applications Notice"
echo "=============================================="
echo "Some Electron applications (like Vesktop) may need"
echo "special permissions to run correctly."
echo ""
echo "If you encounter issues with Electron apps, run:"
echo " fix-electron-apps"
echo ""
echo "This command will properly set permissions on all"
echo "Electron sandbox files in your system."
echo "=============================================="
echo ""
'';
}