summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-03-12 01:18:35 -0400
committerSeth Flynn <[email protected]>2025-03-12 20:26:38 -0400
commit6cf2d778397d8e21d9100589f35fb402fa9beb56 (patch)
treeb3287c2e5418446b22488041af44dc9ddc81c519 /flake.nix
parentfa4eb3a1ab14173cf27be23c0fde71a4c73f974c (diff)
nix: flake.nix -> shell.nix
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix57
1 files changed, 0 insertions, 57 deletions
diff --git a/flake.nix b/flake.nix
deleted file mode 100644
index 91983dc..0000000
--- a/flake.nix
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- description = "Getchoo's website";
-
- inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
-
- outputs =
- {
- self,
- nixpkgs,
- }:
- let
- inherit (nixpkgs) lib;
- systems = lib.systems.flakeExposed;
-
- forAllSystems = lib.genAttrs systems;
- nixpkgsFor = forAllSystems (system: nixpkgs.legacyPackages.${system});
- in
- {
- devShells = forAllSystems (
- system:
- let
- pkgs = nixpkgsFor.${system};
-
- baseNodeTools = [
- pkgs.corepack
- pkgs.nodejs
- pkgs.nrr
- ];
- in
- {
- default = pkgs.mkShellNoCC {
- packages = baseNodeTools ++ [
- # Language servers
- pkgs.astro-language-server
- pkgs.typescript-language-server
- pkgs.vscode-langservers-extracted
-
- # For CI
- pkgs.actionlint
-
- # Nix tools
- pkgs.deadnix
- pkgs.nil
- pkgs.statix
- self.formatter.${system}
- ];
- };
-
- ci = pkgs.mkShellNoCC {
- packages = baseNodeTools;
- };
- }
- );
-
- formatter = forAllSystems (system: nixpkgsFor.${system}.nixfmt-rfc-style);
- };
-}