nixos/modules/dev/nixd.nix

27 lines
428 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,
...
}:
2024-08-01 16:24:09 +04:00
let
2023-09-16 12:12:55 +04:00
cfg = config.modules.dev.nixd;
in {
2023-08-06 03:00:48 +04:00
options.modules.dev.nixd = {
2024-08-01 16:24:09 +04:00
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 {
2023-08-06 03:00:48 +04:00
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
];
};
}