Don't add the i3 window manager to the system if it isn't enabled in configuration.nix.
This commit is contained in:
parent
7de6a7e8b0
commit
0c12e29368
|
@ -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 &
|
||||
|
|
Loading…
Reference in a new issue