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
This commit is contained in:
15
flake.nix
15
flake.nix
@@ -1,20 +1,25 @@
|
|||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs:
|
{
|
||||||
inputs.flake-utils.lib.eachDefaultSystem (
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
flake-utils,
|
||||||
|
}:
|
||||||
|
flake-utils.lib.eachDefaultSystem (
|
||||||
system:
|
system:
|
||||||
let
|
let
|
||||||
pkgs = (import (inputs.nixpkgs) { inherit system; });
|
pkgs = (import nixpkgs { inherit system; });
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
formatter = pkgs.nixfmt-rfc-style;
|
formatter = pkgs.nixfmt-rfc-style;
|
||||||
|
|
||||||
devShell = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
|
name = "utrp-dev";
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
nodejs_20 # v20.19.4
|
nodejs_20 # v20.19.4
|
||||||
pnpm_10 # v10.14.0
|
pnpm_10 # v10.14.0
|
||||||
|
|||||||
Reference in New Issue
Block a user