2023-08-06 03:00:48 +04:00
|
|
|
# nixd nix lsp using nix and nixpkgs
|
|
|
|
# where has this been my whole life
|
2023-08-06 03:09:15 +04:00
|
|
|
{ inputs, outputs, options, config, lib, pkgs, ...}:
|
2023-08-06 03:00:48 +04:00
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.modules.dev.nixd;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.modules.dev.nixd = {
|
|
|
|
enable = mkEnableOption false;
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-08-06 03:07:15 +04:00
|
|
|
unstable.nixd
|
2023-08-06 03:00:48 +04:00
|
|
|
nixpkgs-fmt
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|