nixos/modules/dev/nixd.nix

14 lines
390 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
2024-10-02 17:51:09 +04:00
{ outputs, options, config, lib, pkgs, ... }:
let cfg = config.modules.dev.nixd;
2023-09-16 12:12:55 +04:00
in {
2024-10-02 17:51:09 +04:00
options.modules.dev.nixd = { enable = lib.mkEnableOption false; };
2023-08-06 03:00:48 +04:00
2023-08-06 03:29:32 +04:00
# TODO(sako):: figure out how .nixd.json works
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2024-10-02 17:51:09 +04:00
environment.systemPackages = with pkgs; [ nixd alejandra nixfmt ];
2023-08-06 03:00:48 +04:00
};
}