1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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 ]; }; }