wrappers: explicitly set _file for wrapper modules

This won't be detected automatically, since the modules are all returned
from function calls instead of being path references.
This commit is contained in:
Matt Sturgeon 2024-09-25 16:22:25 +01:00
parent b3a90d737d
commit a8f678da24
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
4 changed files with 8 additions and 0 deletions

View file

@ -29,6 +29,8 @@ let
extraFiles = lib.filter (file: file.enable) (lib.attrValues cfg.extraFiles);
in
{
_file = ./_shared.nix;
# TODO: Added 2024-07-24; remove after 24.11
imports = [
(lib.mkRenamedOptionModule

View file

@ -28,6 +28,8 @@ let
};
in
{
_file = ./darwin.nix;
options = {
programs.nixvim = mkOption {
inherit (nixvimConfig) type;

View file

@ -27,6 +27,8 @@ let
};
in
{
_file = ./hm.nix;
options = {
programs.nixvim = mkOption {
inherit (nixvimConfig) type;

View file

@ -28,6 +28,8 @@ let
};
in
{
_file = ./nixos.nix;
options = {
programs.nixvim = mkOption {
inherit (nixvimConfig) type;