diff options
Diffstat (limited to 'nix/modules/firejail.nix')
| -rw-r--r-- | nix/modules/firejail.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nix/modules/firejail.nix b/nix/modules/firejail.nix new file mode 100644 index 0000000..054171a --- /dev/null +++ b/nix/modules/firejail.nix @@ -0,0 +1,20 @@ +{ pkgs, lib, ... }: +{ + programs.firejail = { + enable = true; + wrappedBinaries = { + firefox = { + executable = "${lib.getBin pkgs.firefox-bin}/bin/firefox"; + profile = "${pkgs.firejail}/etc/firejail/firefox.profile"; + }; + emacs = { + executable = "${lib.getBin pkgs.emacs-pgtk}/bin/emacs"; + profile = "${pkgs.firejail}/etc/firejail/emacs.profile"; + }; + zathura = { + executable = "${lib.getBin pkgs.zathura}/bin/zathura"; + profile = "${pkgs.firejail}/etc/firejail/zathura.profile"; + }; + }; + }; +} |
