Change in packages name for neovim Base16 plugin

This commit is contained in:
Yorick Barbanneau 2024-03-05 22:32:15 +01:00
parent 4f6de7a255
commit 6b28554969
4 changed files with 24 additions and 3 deletions

View file

@ -20,6 +20,17 @@
desktop.sway = { desktop.sway = {
enable = true; enable = true;
kanshi = true; kanshi = true;
waybar = {
laptop = true;
gpuThermal = {
enable = false;
};
cpuThermal = {
thermalZone = "2";
# hwmonPathAbs = "";
# inputFilename = "";
};
};
}; };
}; };
} }

View file

@ -49,7 +49,7 @@ in
''; '';
} }
{ {
plugin = nvim-base16; plugin = base16-nvim;
type = "lua"; type = "lua";
config = '' config = ''
vim.cmd.colorscheme 'base16-default-dark' vim.cmd.colorscheme 'base16-default-dark'

View file

@ -22,6 +22,12 @@ in
cpuThermal = { cpuThermal = {
thermalZone = mkOption {
type = types.str;
default = "";
description = "CPU thermal hwmon thermal Zone";
};
hwmonPathAbs = mkOption { hwmonPathAbs = mkOption {
type = types.str; type = types.str;
default = ""; default = "";

View file

@ -121,8 +121,12 @@ in
"temperature" = { "temperature" = {
"critical-threshold" = 80; "critical-threshold" = 80;
"format" = "{temperatureC}°C "; "format" = "{temperatureC}°C ";
"hwmon-path-abs" = "${cfg.waybar.cpuThermal.hwmonPathAbs}"; "thermal-zone" = mkIf ( cfg.waybar.cpuThermal.thermalZone != "" )
"input-filename" = "${cfg.waybar.cpuThermal.inputFilename}"; "${cfg.waybar.cpuThermal.thermalZone}";
"hwmon-path-abs" = mkIf ( cfg.waybar.cpuThermal.hwmonPathAbs != "" )
"${cfg.waybar.cpuThermal.hwmonPathAbs}";
"input-filename" = mkIf ( cfg.waybar.cpuThermal.inputFilename != "" )
"${cfg.waybar.cpuThermal.inputFilename}";
}; };
"temperature#gpu" = { "temperature#gpu" = {
"critical-threshold" = 80; "critical-threshold" = 80;