dev: add flake for dev shell

This commit is contained in:
phiwan-dev 2025-06-05 00:29:12 +02:00
parent 8839585eaf
commit d1b1337c8f
2 changed files with 49 additions and 0 deletions

24
flake.nix Normal file
View file

@ -0,0 +1,24 @@
{
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!
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; config.cudaSupport = true; config.cudnnSupport = true; config.allowUnfree = true; };
in {
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
ergogen
];
shellHook = ''
echo loaded ergogen shell
'';
};
};
}