modules/info: add info.graphical

This commit is contained in:
Infinidoge 2021-11-16 11:16:49 -05:00
parent b5ba1b8100
commit 7a37b2f5b3
2 changed files with 12 additions and 2 deletions

View file

@ -6,5 +6,15 @@ with lib;
type = types.int;
default = 1;
};
graphical = mkOption {
type = with types; bool;
default = false;
description = "Whether or not we are in a graphical environment";
};
};
config = {
info.graphical = config.services.xserver.enable;
};
}