add firejail
This commit is contained in:
parent
858a4a1bf1
commit
91240b2a50
@ -16,6 +16,7 @@
|
||||
./groups
|
||||
./hardware
|
||||
./ide
|
||||
./isolation
|
||||
./networking
|
||||
./notif
|
||||
./office
|
||||
|
||||
@ -49,6 +49,7 @@ in
|
||||
chromium.enable = true;
|
||||
desmume.enable = true;
|
||||
ghidra.enable = true;
|
||||
firejail.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -45,6 +45,7 @@ in
|
||||
aegisub.enable = true;
|
||||
alacritty.enable = true;
|
||||
chromium.enable = true;
|
||||
firejail.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
6
modules/nix/isolation/default.nix
Normal file
6
modules/nix/isolation/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./firejail.nix
|
||||
];
|
||||
}
|
||||
15
modules/nix/isolation/firejail.nix
Normal file
15
modules/nix/isolation/firejail.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ lib, pkgs, config, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
in
|
||||
{
|
||||
options.smayzy.firejail.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "firejail";
|
||||
};
|
||||
|
||||
config = mkIf config.smayzy.firejail.enable {
|
||||
environment.systemPackages = with pkgs; [ firejail ];
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user