fix icons for sandboxed stuff

This commit is contained in:
Christoph Cullmann 2023-10-21 18:15:29 +02:00
parent 4f2848ca39
commit d228802505

View file

@ -204,6 +204,7 @@ in
aspellDicts.en aspellDicts.en
borgbackup borgbackup
btop btop
chromium
clamav clamav
clinfo clinfo
config.boot.kernelPackages.perf config.boot.kernelPackages.perf
@ -234,19 +235,23 @@ in
zsh-powerlevel10k zsh-powerlevel10k
]; ];
# we want sandboxed browsers # run some stuff in a sandbox
programs.firejail.enable = true; programs.firejail = {
programs.firejail.wrappedBinaries = { enable = true;
chromium = { wrappedBinaries = {
executable = "${pkgs.lib.getBin pkgs.chromium}/bin/chromium"; chromium = {
profile = "${pkgs.firejail}/etc/firejail/chromium.profile"; executable = "${pkgs.lib.getBin pkgs.chromium}/bin/chromium";
}; profile = "${pkgs.firejail}/etc/firejail/chromium.profile";
firefox = { };
executable = "${pkgs.lib.getBin pkgs.firefox}/bin/firefox"; firefox = {
profile = "${pkgs.firejail}/etc/firejail/firefox.profile"; 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; programs.chromium.enable = true;
# firefox needs programs.firefox.enable here but no systemPackages entry to have icon and work
programs.firefox.enable = true; programs.firefox.enable = true;
# allow keyboard configure tools to work # allow keyboard configure tools to work