2024-05-04 23:15:57 +03:00
|
|
|
# Global settings.
|
|
|
|
# Just like I can configure each package, here I configure my config! :O)
|
2024-10-11 23:27:07 +03:00
|
|
|
{ lib, ... }:
|
|
|
|
{
|
|
|
|
options.setting = with lib; {
|
|
|
|
# Ollama settings.
|
|
|
|
# I use the best light model by default.
|
|
|
|
ollama = mkOption {
|
|
|
|
default = { };
|
|
|
|
type = types.submodule {
|
|
|
|
# freeformType = lib.jsonFormat.type;
|
|
|
|
options = {
|
|
|
|
primaryModel = mkOption {
|
|
|
|
default = "llama3";
|
|
|
|
type = types.str;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-06-21 10:50:04 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
# Whether to use Dpi-aware setting in supported apps.
|
|
|
|
dpiAware = mkOption {
|
|
|
|
default = false;
|
|
|
|
type = types.bool;
|
|
|
|
};
|
2024-06-24 13:36:10 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
# Keyboard options.
|
|
|
|
keyboard = mkOption {
|
|
|
|
default = { };
|
|
|
|
type = types.submodule {
|
|
|
|
options = {
|
|
|
|
layouts = mkOption {
|
|
|
|
default = "us,ru";
|
|
|
|
type = types.str;
|
|
|
|
};
|
|
|
|
options = mkOption {
|
|
|
|
default = "grp:toggle";
|
|
|
|
type = types.str;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-06-24 13:36:10 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
# CPU configurations.
|
|
|
|
cpu = mkOption {
|
|
|
|
default = { };
|
|
|
|
type = types.submodule {
|
|
|
|
options = {
|
|
|
|
hwmon = mkOption {
|
|
|
|
default = { };
|
|
|
|
type = types.submodule {
|
|
|
|
options = {
|
|
|
|
path = mkOption {
|
|
|
|
default = "";
|
|
|
|
type = types.str;
|
|
|
|
};
|
|
|
|
file = mkOption {
|
|
|
|
default = "";
|
|
|
|
type = types.str;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 03:03:58 +03:00
|
|
|
}
|