summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-16 03:53:24 -0400
committerseth <[email protected]>2023-05-16 04:08:37 -0400
commit681cd8c1cc2904c562f9a58db3cbb657d58fb552 (patch)
tree9255f71e577fc82f079c16ff493f432ca5557284 /flake.nix
parentbf4df962be338c08ae41bed94b1d60b2930fca9f (diff)
feat: rewrite with astro
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix23
1 files changed, 19 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index 36f765c..228e6a8 100644
--- a/flake.nix
+++ b/flake.nix
@@ -31,6 +31,7 @@
src = ./.;
hooks = {
alejandra.enable = true;
+ eslint.enable = true;
prettier.enable = true;
editorconfig-checker.enable = true;
};
@@ -40,17 +41,31 @@
devShells = forAllSystems (system: let
pkgs = nixpkgsFor.${system};
inherit (pkgs) mkShell;
+ cache = pkgs.fetchYarnDeps {
+ yarnLock = ./yarn.lock;
+ sha256 = "sha256-yhhuIfXjJhSfA8lweJ/0iD1qhnS3Th7P4zT+8iiWB/8=";
+ };
in {
default = mkShell {
inherit (self.checks.${system}.pre-commit-check) shellHook;
- packages = with pkgs; [
+ packages = with pkgs;
+ with nodePackages; [
alejandra
- deno
- fzf
+ cache
+ eslint
just
- nodePackages.prettier
+ nodejs
+ prettier
+ yarn
];
};
});
+
+ packages = forAllSystems (s: let
+ pkgs = nixpkgsFor.${s};
+ in rec {
+ getchoo-website = pkgs.callPackage ./nix {};
+ default = getchoo-website;
+ });
};
}