From 6bb027dbeb3dedb6c65cb27274465105bccdfb18 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Fri, 3 Dec 2021 11:48:19 +0100 Subject: initial commit --- modules/nix.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/nix.nix (limited to 'modules/nix.nix') diff --git a/modules/nix.nix b/modules/nix.nix new file mode 100644 index 0000000..a960e28 --- /dev/null +++ b/modules/nix.nix @@ -0,0 +1,16 @@ +{ config, lib, pkgs, ... }: + +with lib; +let cfg = config.nix; +in { + options.nix = { enable = mkEnableOption "nix"; }; + + config = mkIf cfg.enable { + buildInputs = with pkgs; [ + nixfmt + nixos-option + nix-prefetch-scripts + nix-prefetch-github + ]; + }; +} -- cgit v1.2.3