From 1f7f488d3dcbecef6e24598c8a5551bbc33d96ee Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sun, 14 Aug 2022 17:24:07 -0400 Subject: [PATCH] Extracted editor requirements for nix --- modules/lang/nix.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/lang/nix.nix 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 ]; + }; +}