diff --git a/devshell.nix b/devshell.nix index bc34f5b..d23769c 100644 --- a/devshell.nix +++ b/devshell.nix @@ -1,4 +1,4 @@ -{ pkgs }: +{ pkgs, perSystem, ... }: let helix-config = pkgs.writeText "helix.conf" '' [editor.cursor-shape] @@ -40,6 +40,9 @@ pkgs.mkShell { systemd-lsp zellij dua + + python313Packages.psycopg2-binary + perSystem.sqlit.default ]; # Add environment variables diff --git a/flake.lock b/flake.lock index 7e38c6c..83f86d0 100644 --- a/flake.lock +++ b/flake.lock @@ -21,6 +21,24 @@ "type": "github" } }, + "flake-utils": { + "inputs": { + "systems": "systems_2" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1766902085, @@ -37,10 +55,46 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1767640445, + "narHash": "sha256-UWYqmD7JFBEDBHWYcqE6s6c77pWdcU/i+bwD6XxMb8A=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "9f0c42f8bc7151b8e7e5840fb3bd454ad850d8c5", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { "blueprint": "blueprint", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "sqlit": "sqlit" + } + }, + "sqlit": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1768433146, + "narHash": "sha256-rgyWXj+tTy0Igm9jtcGKkWv6LSSe0aKUBGFfLGbhrxM=", + "owner": "Maxteabag", + "repo": "sqlit", + "rev": "3e1dc6d3810226cf8f7e8fdd0e0e4362414b2d4f", + "type": "github" + }, + "original": { + "owner": "Maxteabag", + "repo": "sqlit", + "type": "github" } }, "systems": { @@ -57,6 +111,21 @@ "repo": "default", "type": "github" } + }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index d4f031d..aaab465 100644 --- a/flake.nix +++ b/flake.nix @@ -6,6 +6,7 @@ nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable"; blueprint.url = "github:numtide/blueprint"; blueprint.inputs.nixpkgs.follows = "nixpkgs"; + sqlit.url = "github:Maxteabag/sqlit"; }; # Load the blueprint