From d22880250540391eb6d59f9a43f167e6e16c7360 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sat, 21 Oct 2023 18:15:29 +0200 Subject: [PATCH] fix icons for sandboxed stuff --- common.nix | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/common.nix b/common.nix index 5c7a534..c8d5dde 100644 --- a/common.nix +++ b/common.nix @@ -204,6 +204,7 @@ in aspellDicts.en borgbackup btop + chromium clamav clinfo config.boot.kernelPackages.perf @@ -234,19 +235,23 @@ in zsh-powerlevel10k ]; - # we want sandboxed browsers - programs.firejail.enable = true; - programs.firejail.wrappedBinaries = { - chromium = { - executable = "${pkgs.lib.getBin pkgs.chromium}/bin/chromium"; - profile = "${pkgs.firejail}/etc/firejail/chromium.profile"; - }; - firefox = { - executable = "${pkgs.lib.getBin pkgs.firefox}/bin/firefox"; - profile = "${pkgs.firejail}/etc/firejail/firefox.profile"; + # run some stuff in a sandbox + programs.firejail = { + enable = true; + wrappedBinaries = { + chromium = { + executable = "${pkgs.lib.getBin pkgs.chromium}/bin/chromium"; + profile = "${pkgs.firejail}/etc/firejail/chromium.profile"; + }; + firefox = { + executable = "${pkgs.lib.getBin pkgs.firefox}/bin/firefox"; + profile = "${pkgs.firejail}/etc/firejail/firefox.profile"; + }; }; }; + # chromium needs programs.firefox.enable here and systemPackages entry to have icon and work programs.chromium.enable = true; + # firefox needs programs.firefox.enable here but no systemPackages entry to have icon and work programs.firefox.enable = true; # allow keyboard configure tools to work