summaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix41
1 files changed, 20 insertions, 21 deletions
diff --git a/shell.nix b/shell.nix
index 1ba11b5..61095bb 100644
--- a/shell.nix
+++ b/shell.nix
@@ -3,25 +3,24 @@ let
fetchTree = import ./nix/fetchTree.nix;
flakeSources = builtins.mapAttrs (_: node: fetchTree node.locked) lock.nodes;
in
- {
- pkgs ?
- import sources.nixpkgs {
- inherit system;
- config = {};
- overlays = [];
- },
- system ? builtins.currentSystem,
- sources ? flakeSources,
- formatter ? pkgs.alejandra,
- }:
- pkgs.mkShellNoCC {
- packages = [
- pkgs.zola
+{
+ pkgs ? import sources.nixpkgs {
+ inherit system;
+ config = { };
+ overlays = [ ];
+ },
+ system ? builtins.currentSystem,
+ sources ? flakeSources,
+ formatter ? pkgs.nixfmt-rfc-style,
+}:
+pkgs.mkShellNoCC {
+ packages = [
+ pkgs.zola
- # linters + formatters
- formatter
- pkgs.actionlint
- pkgs.nodePackages.alex
- pkgs.nodePackages.prettier
- ];
- }
+ # linters + formatters
+ formatter
+ pkgs.actionlint
+ pkgs.nodePackages.alex
+ pkgs.nodePackages.prettier
+ ];
+}