From b4f04ffb4354cdeecbf0613d31324a378b40a881 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sat, 2 Aug 2014 17:27:32 +0200 Subject: i3: Check whether configuration file is valid. Finally, after going through quite some journey, we can now check the config file without needing an X connection. The journey took a bit longer, because I was stubborn enough to get the test suite running on Nix (because I wanted to have an upstream test case for this). All that to create a small patch which just checks that damn config file and emits an exit code that actually reflects the output :-) Signed-off-by: aszlig --- modules/i3/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') diff --git a/modules/i3/default.nix b/modules/i3/default.nix index a10c9e69..417e987a 100644 --- a/modules/i3/default.nix +++ b/modules/i3/default.nix @@ -102,6 +102,10 @@ in inherit (pkgs) dmenu xterm pvolctrl; inherit (pkgs.xorg) xsetroot; inherit wsConfig barConfig; + + postInstall = '' + ${pkgs.i3}/bin/i3 -c "$target" -C + ''; }; }; } -- cgit 1.4.1