mirror of
https://github.com/itme-brain/nixos.git
synced 2026-05-08 14:50:12 -04:00
fix(neovim): support mason tools on nixos
This commit is contained in:
parent
a184bd35ee
commit
42c9fbc6e1
5 changed files with 43 additions and 1 deletions
39
system/modules/nix-ld/default.nix
Normal file
39
system/modules/nix-ld/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.system.nix-ld;
|
||||
|
||||
in
|
||||
{
|
||||
options.modules.system.nix-ld = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = any
|
||||
(user: user.modules.user.neovim.enable or false)
|
||||
(attrValues config.home-manager.users);
|
||||
description = "Enable nix-ld so Mason-installed Neovim tools can run on NixOS.";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.nix-ld = {
|
||||
enable = true;
|
||||
libraries = with pkgs; [
|
||||
curl
|
||||
expat
|
||||
fontconfig
|
||||
freetype
|
||||
glib
|
||||
icu
|
||||
libgcc
|
||||
libGL
|
||||
libxkbcommon
|
||||
openssl
|
||||
stdenv.cc.cc
|
||||
zlib
|
||||
zstd
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue