New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firejail: add nixos module #43511
firejail: add nixos module #43511
Conversation
Success on x86_64-linux (full log) Attempted: firejail Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: firejail Partial log (click to expand)
|
It would also be useful with a configuration option to wrap programs in I'm thinking something like: programs.firejail = {
enable = true;
wrapBins = {
mpv = "${mpv}/bin/mpv";
};
}; That would be a really easy way for NixOS users to get MAC-ish behaviour for certain software. |
Success on x86_64-linux (full log) Attempted: firejail Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: firejail Partial log (click to expand)
|
@peterhoeg Fantastic! Also needs a changelog entry for |
Good idea - done. |
Also add support for wrapping binaries with firejail.
Success on aarch64-linux (full log) Attempted: firejail Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: firejail Partial log (click to expand)
|
I'm having an issue with this so far. I have created a profile for vlc under ~/.config/firejail which should make everything except the ~/Downloads folder invisible: So it appears that vlc is properly jailed, but the file open dialog is not... Any thoughts @peterhoeg ? |
Not offhand, no. |
Motivation for this change
We need to set up a wrapper for it to work.
Cc: @coretemp
Fixes #43488
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)