Don't add the i3 window manager to the system if it isn't enabled in configuration.nix.

This commit is contained in:
Peter Simons 2012-07-12 11:33:10 +02:00
parent 7de6a7e8b0
commit 0c12e29368

View file

@ -16,9 +16,9 @@ in
};
};
config = {
config = mkIf cfg.enable {
services.xserver.windowManager = {
session = mkIf cfg.enable [{
session = [{
name = "i3";
start = "
${pkgs.i3}/bin/i3 &