summaryrefslogtreecommitdiff
path: root/modules/nix.nix
blob: a960e289c024480c3379565b5c738182208fa6f2 (plain)
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
    ];
  };
}