dev: add more tooling to flake

This commit is contained in:
phiwan-dev 2025-06-07 01:12:38 +02:00
parent 64ddd0fb6b
commit 9fb4e824eb
2 changed files with 13 additions and 9 deletions

14
flake.lock generated
View file

@ -2,16 +2,18 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1747958103,
"narHash": "sha256-qmmFCrfBwSHoWw7cVK4Aj+fns+c54EBP8cGqp/yK410=",
"owner": "NixOS",
"lastModified": 1749086602,
"narHash": "sha256-DJcgJMekoxVesl9kKjfLPix2Nbr42i7cpEHJiTnBUwU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "fe51d34885f7b5e3e7b59572796e1bcb427eccb1",
"rev": "4792576cb003c994bd7cc1edada3129def20b27d",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
"owner": "nixos",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {

View file

@ -1,8 +1,6 @@
{
description = "ergogen dev env";
#inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; Uses the cuda driver installed on the system, hence commented out.
#inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; Forcing a specific version will likely result in conflicts!
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
outputs = { self, nixpkgs }:
let
@ -13,9 +11,13 @@
buildInputs = with pkgs; [
ergogen
librecad # for 2D outlines
kicad # for PCBs
];
shellHook = ''
export __GLX_VENDOR_LIBRARY_NAME="" # To fix kicad with nvidia drivers
echo loaded ergogen shell
'';
};