aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-11-05 00:03:33 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-11-05 01:18:10 +0100
commit50ca1ec0cff2ab978945d660c7e1ad4da59a431e (patch)
treefe61adfa41ae05615fdcf4027d93d1ec7ec1039a
parent6b9bede275430bc13059e1c5079a1460b033e75d (diff)
chore: add Nix flake and clean up ignore files
-rw-r--r--.dir-locals.el16
-rw-r--r--.envrc1
-rw-r--r--.gitignore4
-rw-r--r--flake.lock43
-rw-r--r--flake.nix22
5 files changed, 70 insertions, 16 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
deleted file mode 100644
index 4df3cad..0000000
--- a/.dir-locals.el
+++ /dev/null
@@ -1,16 +0,0 @@
-;;; Directory Local Variables -*- no-byte-compile: t -*-
-;;; For more information see (info "(emacs) Directory Variables")
-
-((nil . ((fill-column . 80)
- (cider-preferred-build-tool . clojure-cli)
- (cider-clojure-cli-aliases . "-M:frontend")
- (cider-default-cljs-repl . custom)
- (cider-custom-cljs-repl-init-form . "(do (require '[shadow.cljs.devtools.api :as shadow])\n(require '[shadow.cljs.devtools.server :as server])\n(server/start!)\n(shadow/watch :tubo)\n(shadow/nrepl-select :tubo))")
- (cider-merge-sessions . :project)
- (eval . (progn
- (unless (boundp 'cider-jack-in-nrepl-middlewares)
- (require 'cider))
- (make-variable-buffer-local 'cider-jack-in-nrepl-middlewares)
- (add-to-list 'cider-jack-in-nrepl-middlewares "cider.nrepl/cider-middleware")
- (add-to-list 'cider-jack-in-nrepl-middlewares "shadow.cljs.devtools.server.nrepl/middleware")))
- (eval . (setq-local compile-command "npm start")))))
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/.envrc
@@ -0,0 +1 @@
+use flake
diff --git a/.gitignore b/.gitignore
index 24c8ae5..44ee401 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,11 @@
node_modules
public
target
+result
*.jar
.cpcache
.nrepl-port
.shadow-cljs
+.clj-kondo
+.lsp
+.dir-locals.el
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..f5f576f
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,43 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1730531603,
+ "narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs",
+ "systems": "systems"
+ }
+ },
+ "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
new file mode 100644
index 0000000..d251687
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,22 @@
+{
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+ systems.url = "github:nix-systems/default";
+ };
+ outputs =
+ { nixpkgs, systems, ... }:
+ let
+ eachSystem =
+ f: nixpkgs.lib.genAttrs (import systems) (system: f (import nixpkgs { inherit system; }));
+ in
+ {
+ devShells = eachSystem (pkgs: {
+ default = pkgs.mkShell {
+ buildInputs = with pkgs; [
+ zprint
+ clj-kondo
+ ];
+ };
+ });
+ };
+}