mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
nixos/neovim: fix runtime.text
This commit is contained in:
parent
3c277b537b
commit
c3a2ce47a1
1 changed files with 7 additions and 4 deletions
|
@ -138,7 +138,8 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
source = mkOption {
|
source = mkOption {
|
||||||
type = types.path;
|
default = null;
|
||||||
|
type = types.nullOr types.path;
|
||||||
description = lib.mdDoc "Path of the source file.";
|
description = lib.mdDoc "Path of the source file.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -160,9 +161,11 @@ in
|
||||||
environment.etc = listToAttrs (attrValues (mapAttrs
|
environment.etc = listToAttrs (attrValues (mapAttrs
|
||||||
(name: value: {
|
(name: value: {
|
||||||
name = "xdg/nvim/${name}";
|
name = "xdg/nvim/${name}";
|
||||||
value = value // {
|
value = removeAttrs
|
||||||
target = "xdg/nvim/${value.target}";
|
(value // {
|
||||||
};
|
target = "xdg/nvim/${value.target}";
|
||||||
|
})
|
||||||
|
(optionals (isNull value.source) [ "source" ]);
|
||||||
})
|
})
|
||||||
cfg.runtime));
|
cfg.runtime));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue