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:11:22 +04:00
|
|
|
{ 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;
|
|
|
|
};
|
|
|
|
|
2023-08-06 03:29:32 +04:00
|
|
|
# TODO(sako):: figure out how .nixd.json works
|
|
|
|
|
2023-08-06 03:00:48 +04:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-08-06 03:07:15 +04:00
|
|
|
unstable.nixd
|
2023-08-06 18:57:50 +04:00
|
|
|
alejandra
|
2023-08-06 03:00:48 +04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|