add firejail
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./firejail.nix
|
||||
];
|
||||
}
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user