nixos/modules/dev/nixd.nix

27 lines
430 B
Nix
Raw Normal View History

2023-08-06 03:00:48 +04:00
# nixd nix lsp using nix and nixpkgs
# where has this been my whole life
{
2023-09-16 12:12:55 +04:00
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.dev.nixd;
in {
2023-08-06 03:00:48 +04:00
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
];
};
}