Skip to content

Commit

Permalink
Merge pull request #949 from yorodm/feature/add-nixd
Browse files Browse the repository at this point in the history
Feature/add nixd
  • Loading branch information
domenkozar authored Jan 23, 2024
2 parents aa237a7 + a01268f commit 2a0b706
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/modules/languages/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ in
{
options.languages.nix = {
enable = lib.mkEnableOption "tools for Nix development";
lsp.package = lib.mkOption {
type = lib.types.package;
default = pkgs.nil;
defaultText = lib.literalExpression "pkgs.nil";
description = "The LSP package to use";
};
};

config = lib.mkIf cfg.enable {
Expand All @@ -14,7 +20,6 @@ in
statix
vulnix
deadnix
nil
];
] ++ cfg.lsp.package;
};
}

0 comments on commit 2a0b706

Please sign in to comment.