nixos/modules/dev/nixd.nix

19 lines
360 B
Nix

# nixd nix lsp using nix and nixpkgs
# where has this been my whole life
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.dev.nixd;
in
{
options.modules.dev.nixd = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
nixd
nixpkgs-fmt
];
};
}