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

@ -77,4 +77,9 @@ in
swapDevices = [ swapDevices = [
{ device = uuid "37916097-dbb9-4a74-b761-17043629642a"; } { device = uuid "37916097-dbb9-4a74-b761-17043629642a"; }
]; ];
info = {
monitors = 3;
model = "Custom Desktop";
};
} }

View file

@ -68,4 +68,6 @@ in
swapDevices = [{ device = uuid "28672ffb-9f1c-462b-b49d-8a14b3dd72b3"; }]; swapDevices = [{ device = uuid "28672ffb-9f1c-462b-b49d-8a14b3dd72b3"; }];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
info.model = "Framework Laptop";
} }

View file

@ -103,4 +103,9 @@ in
]; ];
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
info = {
monitors = 0;
model = "Headless Server";
};
} }

View file

@ -58,4 +58,6 @@ in
}; };
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
info.model = "Portable Installation";
} }

View file

@ -23,4 +23,6 @@
# Public hash and duplicate password is good enough # Public hash and duplicate password is good enough
user.hashedPassword = "$6$SDBGTp1hVS7eOs3P$uJwwxOUxrRaMTAPdc349vvSfA7u.4SHtJuXvxxIo4v70WT9KQqmbOOF5qWS9/.okv.HkcBe0CVj5fLaPy9Oew."; user.hashedPassword = "$6$SDBGTp1hVS7eOs3P$uJwwxOUxrRaMTAPdc349vvSfA7u.4SHtJuXvxxIo4v70WT9KQqmbOOF5qWS9/.okv.HkcBe0CVj5fLaPy9Oew.";
users.users.root.hashedPassword = "$6$SDBGTp1hVS7eOs3P$uJwwxOUxrRaMTAPdc349vvSfA7u.4SHtJuXvxxIo4v70WT9KQqmbOOF5qWS9/.okv.HkcBe0CVj5fLaPy9Oew."; users.users.root.hashedPassword = "$6$SDBGTp1hVS7eOs3P$uJwwxOUxrRaMTAPdc349vvSfA7u.4SHtJuXvxxIo4v70WT9KQqmbOOF5qWS9/.okv.HkcBe0CVj5fLaPy9Oew.";
info.model = "Windows Subsystem for Linux";
} }

View file

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