summaryrefslogtreecommitdiff
path: root/nix/modules/firejail.nix
blob: 054171a6e6802562a20c9274a7f376c39ab2c9fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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";
      };
    };
  };
}