From eadddb3c872cba3edd674424fadc959bf00b721f Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 19 Sep 2025 17:20:46 -0700 Subject: commit all changes before flake update --- nix/modules/firejail.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 nix/modules/firejail.nix (limited to 'nix/modules/firejail.nix') 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"; + }; + }; + }; +} -- cgit v1.3