From 6000d5951b304e7bbe6fb0553c5a7e328c1c72cc Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 9 Sep 2025 17:19:13 +0200 Subject: [PATCH 1/5] chore(waybar): rework temperature handling --- modules/home-manager/desktop/sway/default.nix | 4 ++-- .../home-manager/desktop/sway/includes/files/waybar-style.css | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/home-manager/desktop/sway/default.nix b/modules/home-manager/desktop/sway/default.nix index b3950e7..d8fa2ff 100644 --- a/modules/home-manager/desktop/sway/default.nix +++ b/modules/home-manager/desktop/sway/default.nix @@ -74,8 +74,8 @@ in cpuThermal = { thermalZone = mkOption { - type = types.str; - default = ""; + type = types.int or null; + default = null; description = "CPU thermal hwmon thermal Zone"; }; diff --git a/modules/home-manager/desktop/sway/includes/files/waybar-style.css b/modules/home-manager/desktop/sway/includes/files/waybar-style.css index f7cc59f..d1dd1a2 100644 --- a/modules/home-manager/desktop/sway/includes/files/waybar-style.css +++ b/modules/home-manager/desktop/sway/includes/files/waybar-style.css @@ -101,7 +101,8 @@ button:hover{ #battery.critical:not(.charging), #cpu.critical, -#memory.critical{ +#memory.critical, +#temperature.critical{ border-color: @color-critical; color: @color-critical; } From c155aa783d663954b40674c64570f82b817d7474 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 9 Sep 2025 17:21:54 +0200 Subject: [PATCH 2/5] chore(work): update CPU temperature thermal zone identifier --- hosts/work/home-config.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hosts/work/home-config.nix b/hosts/work/home-config.nix index 0155435..733c542 100644 --- a/hosts/work/home-config.nix +++ b/hosts/work/home-config.nix @@ -38,8 +38,7 @@ laptop = true; gpuThermal.enable = false; cpuThermal = { - hwmonPathAbs = "/sys/devices/platform/coretemp.0/hwmon/"; - inputFilename = "temp1_input"; + thermalZone = 9; }; }; xdg.useDistributionPortals = true; From 7994ecd86c22103f85527e6e123332e99884d417 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 9 Sep 2025 17:25:28 +0200 Subject: [PATCH 3/5] chore(neovim): replace vim-helm plugin with helm-ls-nvim --- modules/home-manager/cli/neovim/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/cli/neovim/default.nix b/modules/home-manager/cli/neovim/default.nix index ee3302e..c62c384 100644 --- a/modules/home-manager/cli/neovim/default.nix +++ b/modules/home-manager/cli/neovim/default.nix @@ -205,7 +205,10 @@ in type = "lua"; config = ( builtins.readFile ./files/plugins/nvim-k8s-lsp.lua ); } - vim-helm + { + plugin = helm-ls-nvim; + type = "lua"; + } ]; }; }; From 7c8685e7da0c09383af9d4a31d4c560f5fda6887 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 9 Sep 2025 17:28:28 +0200 Subject: [PATCH 4/5] chore(neovim): update helm-ls LSP configuration --- modules/home-manager/cli/neovim/files/lsp/helm.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/home-manager/cli/neovim/files/lsp/helm.lua b/modules/home-manager/cli/neovim/files/lsp/helm.lua index 8086a4a..29e9e11 100644 --- a/modules/home-manager/cli/neovim/files/lsp/helm.lua +++ b/modules/home-manager/cli/neovim/files/lsp/helm.lua @@ -1,7 +1,8 @@ return { cmd = { 'helm_ls', 'serve' }, - filetypes = { 'helm' }, - root_markers = { 'Chart.yaml' }, + filetypes = { 'helm', 'yaml.helm-values' }, + single_file_support = true, + root_markers = { 'values.yaml', 'Chart.yaml' }, capabilities = { workspace = { didChangeWatchedFiles = { @@ -18,9 +19,7 @@ return { showdiagnosticsdirectly = false, path = "yaml-language-server", config = { - schemas = { - kubernetes = "template/**", - }, + schemas = {}, completion = true, hover = true, } From 64c6149fdec66071d311a960b8edbf32bf80abc5 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 9 Sep 2025 17:29:41 +0200 Subject: [PATCH 5/5] chore(neovim): update nvim-k8s-lsp configuration --- .../home-manager/cli/neovim/files/plugins/nvim-k8s-lsp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/cli/neovim/files/plugins/nvim-k8s-lsp.lua b/modules/home-manager/cli/neovim/files/plugins/nvim-k8s-lsp.lua index a2176c6..400c8a1 100644 --- a/modules/home-manager/cli/neovim/files/plugins/nvim-k8s-lsp.lua +++ b/modules/home-manager/cli/neovim/files/plugins/nvim-k8s-lsp.lua @@ -1,6 +1,6 @@ require("nvim-k8s-lsp").setup({ - kubernetes_version = "v1.32.2", + kubernetes_version = "v1.32.8", integrations = { - lualine = false, + lualine = true, } })