nixos/modules/dev/nixd.nix
2023-08-06 02:07:15 +03:00

20 lines
369 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; [
unstable.nixd
nixpkgs-fmt
];
};
}