nix/config/Setting.nix

81 lines
1.5 KiB
Nix
Raw Normal View History

# Global settings.
# Just like I can configure each package, here I configure my config! :O)
2024-06-29 18:05:39 +03:00
{ lib, ... }: {
options.setting = with lib; {
2024-06-25 04:04:39 +03:00
# 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-25 04:04:39 +03:00
# Whether to use Dpi-aware setting in supported apps.
dpiAware = mkOption {
default = false;
type = types.bool;
};
2024-06-25 04:04:39 +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-08-20 20:24:43 +03:00
# Zapret params.
zapret = mkOption {
default = {};
type = types.submodule {
options = {
2024-08-20 20:24:43 +03:00
params = mkOption {
2024-08-26 03:42:15 +03:00
default = "--dpi-desync=fake,split2 --dpi-desync-fooling=datanoack";
2024-08-20 20:24:43 +03:00
type = types.str;
};
};
};
};
2024-08-08 01:59:00 +03:00
2024-08-20 20:24:43 +03:00
# CPU configurations.
cpu = mkOption {
2024-08-08 01:59:00 +03:00
default = {};
type = types.submodule {
options = {
2024-08-20 20:24:43 +03:00
hwmon = mkOption {
default = {};
type = types.submodule {
options = {
path = mkOption {
default = "";
type = types.str;
};
file = mkOption {
default = "";
type = types.str;
};
};
};
2024-08-08 01:59:00 +03:00
};
};
};
};
2024-06-23 04:55:57 +03:00
};
2024-04-06 03:03:58 +03:00
}