Skip to content

Commit 438c9f8

Browse files
committed
init flake
1 parent b2db763 commit 438c9f8

File tree

4 files changed

+84
-2
lines changed

4 files changed

+84
-2
lines changed

.envrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
use nix
1+
watch_file nix/devshell.nix
2+
use flake

flake.lock

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
description = "Simple flake with a devshell";
3+
4+
# Add all your dependencies here
5+
inputs = {
6+
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
7+
blueprint.url = "github:numtide/blueprint";
8+
blueprint.inputs.nixpkgs.follows = "nixpkgs";
9+
};
10+
11+
# Load the blueprint
12+
outputs = inputs:
13+
inputs.blueprint {
14+
inherit inputs;
15+
prefix = "nix/";
16+
};
17+
}

shell.nix renamed to nix/devshell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{pkgs ? import <nixpkgs> {}}:
1+
{pkgs}:
22
pkgs.mkShell {
33
packages = with pkgs; [
44
nodejs-slim

0 commit comments

Comments
 (0)