From db86c80a9931074c574c88a0a7ea5339c06b34f5 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Mon, 21 Sep 2026 12:27:01 +0200 Subject: Fix Nix evaluation deprecation warnings Replace deprecated pkgs.stdenv.isDarwin/isLinux with pkgs.stdenv.hostPlatform.isDarwin/.isLinux, and explicitly pin programs.neovim.withRuby/withPython3 = true so the legacy default doesn't silently change if home.stateVersion is ever bumped. Pure deprecation fixes, no behavior change. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01BBSd4VBfoKHjE1HR3P8kmn --- modules/home/dotfiles.nix | 4 ++-- modules/home/editor.nix | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/home') diff --git a/modules/home/dotfiles.nix b/modules/home/dotfiles.nix index 21afb5e..c45c996 100644 --- a/modules/home/dotfiles.nix +++ b/modules/home/dotfiles.nix @@ -7,8 +7,8 @@ let # platform. Kept minimal and overridable via excludePackages rather than # a full per-platform mapping - see design.md for alternatives considered. platformDefaultExcludes = - lib.optionals (!pkgs.stdenv.isDarwin) [ "iterm2" ] - ++ lib.optionals (!pkgs.stdenv.isLinux) [ "herbstluftwm" "xorg" ]; + lib.optionals (!pkgs.stdenv.hostPlatform.isDarwin) [ "iterm2" ] + ++ lib.optionals (!pkgs.stdenv.hostPlatform.isLinux) [ "herbstluftwm" "xorg" ]; excludePackages = platformDefaultExcludes ++ cfg.excludePackages; in diff --git a/modules/home/editor.nix b/modules/home/editor.nix index 413ca8f..792d878 100644 --- a/modules/home/editor.nix +++ b/modules/home/editor.nix @@ -9,6 +9,10 @@ # in separately. Without this, home-manager's own generated init.lua # permanently conflicts with that stow package and it gets skipped. sideloadInitLua = true; + # Pin the legacy (stateVersion < 26.05) provider defaults explicitly so + # this doesn't silently change if stateVersion is ever bumped. + withRuby = true; + withPython3 = true; }; # tree-sitter (parser compilation) and a C compiler for natively-built -- cgit v1.3