nixos-config/tests/modules/wrapper-manager/sandboxing/bubblewrap/basic-zellij.nix

19 lines
409 B
Nix

{ config, lib, pkgs, ... }:
{
locale.enable = true;
wrappers.zellij = {
wraparound.variant = "bubblewrap";
wraparound.subwrapper.arg0 = lib.getExe' pkgs.zellij "zellij";
};
build.extraPassthru.tests = {
zellijWrapperCheck =
let
wrapper = config.build.toplevel;
in pkgs.runCommand { } ''
[ -x ${lib.getExe' wrapper "zellij"} ] && touch $out
'';
};
}