Add flake.nix

This commit is contained in:
ryan 2026-01-05 11:36:35 +11:00
parent 31734551d9
commit a92b3fd4a7
4 changed files with 39 additions and 3 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

5
.gitignore vendored
View File

@ -20,5 +20,6 @@ pnpm-debug.log*
# macOS-specific files
.DS_Store
# jetbrains setting folder
.idea/
# Direnv junk
.direnv/*
*/.direnv/*

34
flake.nix Normal file
View File

@ -0,0 +1,34 @@
{
description = "Lifetracker";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in
with pkgs;
{
devShell = pkgs.mkShell {
buildInputs = [
bashInteractive
glibcLocales
git
nodejs
pnpm
postgresql
inotify-tools
claude-code
];
};
}
);
}

View File

@ -1,5 +1,5 @@
{
"name": "",
"name": "ryanpandya-blog",
"type": "module",
"version": "0.0.1",
"scripts": {