summaryrefslogtreecommitdiff
path: root/modules/nix.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-12-03 11:48:19 +0100
committerQuentin Aristote <quentin@aristote.fr>2021-12-03 11:48:19 +0100
commit6bb027dbeb3dedb6c65cb27274465105bccdfb18 (patch)
tree7613a6397d866617c5c71cb3c906d86f03baba75 /modules/nix.nix
initial commit
Diffstat (limited to 'modules/nix.nix')
-rw-r--r--modules/nix.nix16
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
+ ];
+ };
+}