nixos/neovim: fix runtime.text

linsui c3a2ce47 3c277b53

Changed files
+7 -4
nixos
modules
programs
+7 -4
nixos/modules/programs/neovim.nix
···
};
source = mkOption {
-
type = types.path;
description = lib.mdDoc "Path of the source file.";
};
···
environment.etc = listToAttrs (attrValues (mapAttrs
(name: value: {
name = "xdg/nvim/${name}";
-
value = value // {
-
target = "xdg/nvim/${value.target}";
-
};
})
cfg.runtime));
···
};
source = mkOption {
+
default = null;
+
type = types.nullOr types.path;
description = lib.mdDoc "Path of the source file.";
};
···
environment.etc = listToAttrs (attrValues (mapAttrs
(name: value: {
name = "xdg/nvim/${name}";
+
value = removeAttrs
+
(value // {
+
target = "xdg/nvim/${value.target}";
+
})
+
(optionals (isNull value.source) [ "source" ]);
})
cfg.runtime));