diff --git a/modules/lang/nix.nix b/modules/lang/nix.nix new file mode 100644 index 0000000..63e6cf8 --- /dev/null +++ b/modules/lang/nix.nix @@ -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 ]; + }; +}