feat(info): add info.model, fill in for hosts
This commit is contained in:
parent
7e2a21f238
commit
d0da574672
6 changed files with 18 additions and 0 deletions
|
@ -77,4 +77,9 @@ in
|
|||
swapDevices = [
|
||||
{ device = uuid "37916097-dbb9-4a74-b761-17043629642a"; }
|
||||
];
|
||||
|
||||
info = {
|
||||
monitors = 3;
|
||||
model = "Custom Desktop";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -68,4 +68,6 @@ in
|
|||
swapDevices = [{ device = uuid "28672ffb-9f1c-462b-b49d-8a14b3dd72b3"; }];
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
|
||||
info.model = "Framework Laptop";
|
||||
}
|
||||
|
|
|
@ -103,4 +103,9 @@ in
|
|||
];
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||
|
||||
info = {
|
||||
monitors = 0;
|
||||
model = "Headless Server";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -58,4 +58,6 @@ in
|
|||
};
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
|
||||
info.model = "Portable Installation";
|
||||
}
|
||||
|
|
|
@ -23,4 +23,6 @@
|
|||
# Public hash and duplicate password is good enough
|
||||
user.hashedPassword = "$6$SDBGTp1hVS7eOs3P$uJwwxOUxrRaMTAPdc349vvSfA7u.4SHtJuXvxxIo4v70WT9KQqmbOOF5qWS9/.okv.HkcBe0CVj5fLaPy9Oew.";
|
||||
users.users.root.hashedPassword = "$6$SDBGTp1hVS7eOs3P$uJwwxOUxrRaMTAPdc349vvSfA7u.4SHtJuXvxxIo4v70WT9KQqmbOOF5qWS9/.okv.HkcBe0CVj5fLaPy9Oew.";
|
||||
|
||||
info.model = "Windows Subsystem for Linux";
|
||||
}
|
||||
|
|
|
@ -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) { };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue