mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
flake/wrappers: Make homeModules the canonical name
This commit is contained in:
parent
33eb6dad80
commit
3f82140e8b
1 changed files with 2 additions and 9 deletions
|
@ -20,19 +20,12 @@
|
|||
nixvim = import ../wrappers/nixos.nix self;
|
||||
default = self.nixosModules.nixvim;
|
||||
};
|
||||
# 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;
|
||||
# For backward compatibility
|
||||
homeManagerModules = self.homeModules;
|
||||
homeModules = {
|
||||
nixvim = import ../wrappers/hm.nix self;
|
||||
default = self.homeModules.nixvim;
|
||||
};
|
||||
homeModules = self.homeModules;
|
||||
nixDarwinModules = {
|
||||
nixvim = import ../wrappers/darwin.nix self;
|
||||
default = self.nixDarwinModules.nixvim;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue