From b37d429468c1f5133743e967caf97d92dc35ef5b Mon Sep 17 00:00:00 2001 From: Alex Hamilton <1622250+Aehmlo@users.noreply.github.com> Date: Sun, 25 May 2025 13:53:15 -0400 Subject: [PATCH] flake/wrappers: Deprecate homeManagerModules output --- flake/wrappers.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/flake/wrappers.nix b/flake/wrappers.nix index 10f724e1..d88ca6ac 100644 --- a/flake/wrappers.nix +++ b/flake/wrappers.nix @@ -20,8 +20,14 @@ nixvim = import ../wrappers/nixos.nix self; default = self.nixosModules.nixvim; }; - # For backward compatibility - homeManagerModules = self.homeModules; + # Alias for backward compatibility + # Added 2025-05-25 in https://github.com/nix-community/nixvim/pull/3387 + homeManagerModules = + let + cond = lib.trivial.oldestSupportedReleaseIsAtLeast 2505; + msg = "nixvim: flake output `homeManagerModules` has been renamed to `homeModules`."; + in + lib.warnIf cond msg self.homeModules; homeModules = { nixvim = import ../wrappers/hm.nix self; default = self.homeModules.nixvim;