diff options
Diffstat (limited to 'modules/nix.nix')
| -rw-r--r-- | modules/nix.nix | 16 |
1 files changed, 16 insertions, 0 deletions
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 + ]; + }; +} |
