nixos/neovim: fix runtime.text

This commit is contained in:
linsui 2023-04-28 20:39:51 +08:00 committed by Matthieu Coudron
parent 3c277b537b
commit c3a2ce47a1

View file

@ -138,7 +138,8 @@ in
};
source = mkOption {
type = types.path;
default = null;
type = types.nullOr types.path;
description = lib.mdDoc "Path of the source file.";
};
@ -160,9 +161,11 @@ in
environment.etc = listToAttrs (attrValues (mapAttrs
(name: value: {
name = "xdg/nvim/${name}";
value = value // {
target = "xdg/nvim/${value.target}";
};
value = removeAttrs
(value // {
target = "xdg/nvim/${value.target}";
})
(optionals (isNull value.source) [ "source" ]);
})
cfg.runtime));