aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@vanderlee.io>2026-09-21 12:27:01 +0200
committerGravatar Tom van der Lee <tom@vanderlee.io>2026-09-21 12:27:01 +0200
commitdb86c80a9931074c574c88a0a7ea5339c06b34f5 (patch)
treebcc1496ca6b41b08f395df248230276e50dfb37b /modules/home
parentf8e84b1e18d39632ead22b7c45fe4e97691bed29 (diff)
downloaddesktop-flake-db86c80a9931074c574c88a0a7ea5339c06b34f5.tar.gz
desktop-flake-db86c80a9931074c574c88a0a7ea5339c06b34f5.tar.bz2
desktop-flake-db86c80a9931074c574c88a0a7ea5339c06b34f5.zip
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BBSd4VBfoKHjE1HR3P8kmn
Diffstat (limited to 'modules/home')
-rw-r--r--modules/home/dotfiles.nix4
-rw-r--r--modules/home/editor.nix4
2 files changed, 6 insertions, 2 deletions
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
7 # platform. Kept minimal and overridable via excludePackages rather than 7 # platform. Kept minimal and overridable via excludePackages rather than
8 # a full per-platform mapping - see design.md for alternatives considered. 8 # a full per-platform mapping - see design.md for alternatives considered.
9 platformDefaultExcludes = 9 platformDefaultExcludes =
10 lib.optionals (!pkgs.stdenv.isDarwin) [ "iterm2" ] 10 lib.optionals (!pkgs.stdenv.hostPlatform.isDarwin) [ "iterm2" ]
11 ++ lib.optionals (!pkgs.stdenv.isLinux) [ "herbstluftwm" "xorg" ]; 11 ++ lib.optionals (!pkgs.stdenv.hostPlatform.isLinux) [ "herbstluftwm" "xorg" ];
12 12
13 excludePackages = platformDefaultExcludes ++ cfg.excludePackages; 13 excludePackages = platformDefaultExcludes ++ cfg.excludePackages;
14in 14in
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 @@
9 # in separately. Without this, home-manager's own generated init.lua 9 # in separately. Without this, home-manager's own generated init.lua
10 # permanently conflicts with that stow package and it gets skipped. 10 # permanently conflicts with that stow package and it gets skipped.
11 sideloadInitLua = true; 11 sideloadInitLua = true;
12 # Pin the legacy (stateVersion < 26.05) provider defaults explicitly so
13 # this doesn't silently change if stateVersion is ever bumped.
14 withRuby = true;
15 withPython3 = true;
12 }; 16 };
13 17
14 # tree-sitter (parser compilation) and a C compiler for natively-built 18 # tree-sitter (parser compilation) and a C compiler for natively-built