module: move info into options
This commit is contained in:
parent
d69bd43b50
commit
e83100e1b0
2 changed files with 5 additions and 20 deletions
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -15,6 +15,11 @@ with lib.hlissner;
|
|||
};
|
||||
|
||||
env = mkOpt attrs { };
|
||||
|
||||
info = {
|
||||
monitors = mkOpt int 1;
|
||||
graphical = mkBoolOpt config.services.xserver.enable;
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue