Skip to content

Commit 5cc4d02

Browse files
committed
firejail firefox update
1 parent 287a1af commit 5cc4d02

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

home-manager/apps/firefox.nix

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
{ pkgs, pkgs-unstable, ... }:
1+
{
2+
pkgs,
3+
pkgs-unstable,
4+
config,
5+
...
6+
}:
27

38
let
9+
inherit (config) sops;
10+
411
firefox-wrapper = pkgs.writeShellScriptBin "firefox-firejail" ''
512
exec firejail --ignore=private-bin \
613
--env=XDG_DATA_DIRS="$XDG_DATA_DIRS" \
714
--env=GTK_THEME=Adwaita:dark \
815
--env=XCURSOR_PATH="$XCURSOR_PATH" \
916
--env=NIXOS_OZONE_WL=1 \
10-
--blacklist="$HOME/.ssh" \
1117
--noblacklist=/nix/store \
18+
--blacklist="$HOME/.ssh" \
19+
--blacklist=sops \
1220
--read-only=/nix/store \
21+
--blacklist=${pkgs-unstable.sops}/bin/sops \
22+
--blacklist=${pkgs.sops}/bin/sops \
23+
--blacklist=${sops.age.keyFile} \
1324
"$(readlink -f $(which firefox))" \
1425
--no-remote "$@"
1526
'';

0 commit comments

Comments
 (0)