diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..d91657d --- /dev/null +++ b/flake.lock @@ -0,0 +1,25 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1747958103, + "narHash": "sha256-qmmFCrfBwSHoWw7cVK4Aj+fns+c54EBP8cGqp/yK410=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "fe51d34885f7b5e3e7b59572796e1bcb427eccb1", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..2cc815c --- /dev/null +++ b/flake.nix @@ -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 + ''; + }; + }; +} +