Archived
0
0
Fork 0

add nix flake

This commit is contained in:
Daryl Ronningen 2023-01-12 10:51:32 -08:00
parent 10b690c8ce
commit 3d19743d8d
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
4 changed files with 50 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View file

@ -9,3 +9,4 @@
node_modules node_modules
dist dist
test test
.direnv

27
flake.lock Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1673525234,
"narHash": "sha256-fMP37VTeqSzC8JYoQJinLOnHfjriE5uKInLWJRz5K3E=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "92f9580a4c369b4b51a7b6a5e77da43720134c9f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

21
flake.nix Normal file
View file

@ -0,0 +1,21 @@
{
description = "Linux Package Manager";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = {
self,
nixpkgs,
...
}: let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
devShell.x86_64-linux = pkgs.mkShell {
packages = [pkgs.nodePackages.pnpm pkgs.nodejs-18_x];
};
formatter.x86_64-linux = pkgs.alejandra;
};
}