mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Firejail to sandbox online games
This commit is contained in:
parent
2459f01634
commit
a81aecff5c
7 changed files with 79 additions and 3 deletions
20
system/security/firejail.nix
Normal file
20
system/security/firejail.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [ firejail ];
|
||||
programs.firejail.enable = true;
|
||||
programs.firejail.wrappedBinaries = {
|
||||
prismlauncher = {
|
||||
executable = "${pkgs.prismlauncher}/bin/prismlauncher";
|
||||
profile = ./firejail-profiles/prismlauncher.profile;
|
||||
};
|
||||
steam = {
|
||||
executable = "${pkgs.steam}/bin/steam";
|
||||
profile = "${pkgs.firejail}/etc/firejail/steam.profile";
|
||||
};
|
||||
steam-run = {
|
||||
executable = "${pkgs.steam}/bin/steam-run";
|
||||
profile = "${pkgs.firejail}/etc/firejail/steam.profile";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue