From 7bea23a655140ff51afcbee540999abed0953eb0 Mon Sep 17 00:00:00 2001 From: doprz <52579214+doprz@users.noreply.github.com> Date: Mon, 25 Aug 2025 11:33:44 -0700 Subject: [PATCH] refactor: nix flake (#625) * chore(nix): update flake * chore(nix): remove just and update comment * chore(nix): update node version + volta config * refactor: nix flake --- flake.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 4c458aee..7841752f 100644 --- a/flake.nix +++ b/flake.nix @@ -1,20 +1,25 @@ { inputs = { - flake-utils.url = "github:numtide/flake-utils"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; }; outputs = - inputs: - inputs.flake-utils.lib.eachDefaultSystem ( + { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem ( system: let - pkgs = (import (inputs.nixpkgs) { inherit system; }); + pkgs = (import nixpkgs { inherit system; }); in { formatter = pkgs.nixfmt-rfc-style; - devShell = pkgs.mkShell { + devShells.default = pkgs.mkShell { + name = "utrp-dev"; buildInputs = with pkgs; [ nodejs_20 # v20.19.4 pnpm_10 # v10.14.0