Extracted editor requirements for nix

This commit is contained in:
James Patrick 2022-08-14 17:24:07 -04:00
parent 5f8b3d97f5
commit 1f7f488d3d

16
modules/lang/nix.nix Normal file
View File

@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }:
let
this = config.my.lang.nix;
graphical = config.my.graphical;
in with lib; {
options = {
my.lang.nix.enable = mkOption {
default = graphical.enable;
type = with types; bool;
};
};
config = mkIf this.enable {
environment.systemPackages = with pkgs; [ nixfmt rnix-lsp ];
};
}