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

15 lines
476 B
Nix
Raw Normal View History

2024-08-15 04:09:23 +00:00
{ config, lib, pkgs, ... }:
{
programs.zellij.enable = true;
programs.zellij.configFile = ./config/config.kdl;
build.extraPassthru.tests = {
checkZellijConfigDir = let
wrapper = lib.getExe' config.build.toplevel "zellij";
in pkgs.runCommandLocal "zellij-check-config-dir" { } ''
[ $(${wrapper} setup --check | awk -F':' '/^\[LOOKING FOR CONFIG FILE FROM]/ { gsub(/"|\s/, "", $2); print $2; }') = ${./config/config.kdl} ] && touch $out
'';
};
}