20 lines
369 B
Nix
20 lines
369 B
Nix
{ config, lib, ... }:
|
|
with lib;
|
|
{
|
|
options.info = {
|
|
monitors = mkOption {
|
|
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;
|
|
};
|
|
}
|