module: move info into options

This commit is contained in:
Infinidoge 2022-04-20 09:51:17 -04:00
parent d69bd43b50
commit e83100e1b0
2 changed files with 5 additions and 20 deletions

View file

@ -1,20 +0,0 @@
{ 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;
};
}

View file

@ -15,6 +15,11 @@ with lib.hlissner;
}; };
env = mkOpt attrs { }; env = mkOpt attrs { };
info = {
monitors = mkOpt int 1;
graphical = mkBoolOpt config.services.xserver.enable;
};
}; };
config = { config = {