feat(info): add info.model, fill in for hosts

This commit is contained in:
Infinidoge 2022-05-07 23:57:34 -04:00
parent 7e2a21f238
commit d0da574672
6 changed files with 18 additions and 0 deletions

View file

@ -4,6 +4,7 @@ with lib;
with lib.hlissner;
let
mkAliasOpt = mkOpt types.attrs { };
mkInfoOpt = mkOpt types.str "";
in
{
options = with types; {
@ -22,6 +23,7 @@ in
info = {
monitors = mkOpt int 1;
graphical = mkBoolOpt config.services.xserver.enable;
model = mkInfoOpt;
};
secrets = mkOpt (attrsOf path) { };