From 45af6a53547afff0cfa2d3ded4d969e2d0848488 Mon Sep 17 00:00:00 2001 From: Daisuke Date: Sun, 1 Feb 2026 09:50:10 +0900 Subject: [PATCH] chore(nix): remove repo devShell setup - Delete flake.nix and flake.lock - Remove Nix devshell section from README - Drop Nix ignores from .gitignore --- .gitignore | 5 ----- README.md | 15 -------------- flake.lock | 61 ------------------------------------------------------ flake.nix | 23 -------------------- 4 files changed, 104 deletions(-) delete mode 100644 flake.lock delete mode 100644 flake.nix diff --git a/.gitignore b/.gitignore index 632e837..bfd6a29 100644 --- a/.gitignore +++ b/.gitignore @@ -9,11 +9,6 @@ node_modules/ # Podman / Compose .env.podman -# Nix -.direnv/ -.result -result - # logs npm-debug.log* yarn-debug.log* diff --git a/README.md b/README.md index 774d55e..c7d79cc 100644 --- a/README.md +++ b/README.md @@ -15,21 +15,6 @@ All commands are run from the root of the project, from a terminal: | `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | | `npm run astro -- --help` | Get help using the Astro CLI | -## Nix devshell (recommended) - -If you use Nix, you can enter a dev shell that provides the required CLI tools for this repo: - -```sh -nix develop -``` - -This is intended to provide tools like Forgejo CLI (`fj`) and Node.js so "when you enter the repo, everything is available": - -```sh -nix develop --command fj version -nix develop --command node --version -``` - ## Podman (container) development This repo can be developed inside a Podman container to keep your host clean and improve reproducibility. diff --git a/flake.lock b/flake.lock deleted file mode 100644 index 978e295..0000000 --- a/flake.lock +++ /dev/null @@ -1,61 +0,0 @@ -{ - "nodes": { - "flake-utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1769598131, - "narHash": "sha256-e7VO/kGLgRMbWtpBqdWl0uFg8Y2XWFMdz0uUJvlML8o=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "fa83fd837f3098e3e678e6cf017b2b36102c7211", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-25.11", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs" - } - }, - "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index d1f9cbf..0000000 --- a/flake.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ - description = "Naputo blog devshell"; - - inputs = { - # Use stable nixpkgs for a more predictable toolchain. - nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; - flake-utils.url = "github:numtide/flake-utils"; - }; - - outputs = { self, nixpkgs, flake-utils }: - flake-utils.lib.eachDefaultSystem (system: - let - pkgs = import nixpkgs { inherit system; }; - in - { - devShells.default = pkgs.mkShell { - packages = with pkgs; [ - forgejo-cli - nodejs - ]; - }; - }); -}