dev/nixd: we are on unstable now lmao
This commit is contained in:
parent
2191d23923
commit
10cf42414f
1 changed files with 4 additions and 18 deletions
|
@ -1,27 +1,13 @@
|
||||||
# nixd nix lsp using nix and nixpkgs
|
# nixd nix lsp using nix and nixpkgs
|
||||||
# where has this been my whole life
|
# where has this been my whole life
|
||||||
{
|
{ outputs, options, config, lib, pkgs, ... }:
|
||||||
outputs,
|
let cfg = config.modules.dev.nixd;
|
||||||
options,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
cfg = config.modules.dev.nixd;
|
|
||||||
in {
|
in {
|
||||||
options.modules.dev.nixd = {
|
options.modules.dev.nixd = { enable = lib.mkEnableOption false; };
|
||||||
enable = lib.mkEnableOption false;
|
|
||||||
};
|
|
||||||
|
|
||||||
# TODO(sako):: figure out how .nixd.json works
|
# TODO(sako):: figure out how .nixd.json works
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ nixd alejandra nixfmt ];
|
||||||
unstable.nixd
|
|
||||||
alejandra
|
|
||||||
nixfmt
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue