diff options
| author | vin <vin@vineetk.net> | 2025-03-18 03:22:17 -0400 |
|---|---|---|
| committer | vin <vin@vineetk.net> | 2025-03-18 03:22:17 -0400 |
| commit | 45e28543808a6bfb619ca4030c638c8779498295 (patch) | |
| tree | e68f9b23f295a54cf3bfd5bde22b735d60e27f35 | |
| parent | 21f7bd1df67d69e8f54ba3332b5c8625d4550b42 (diff) | |
demiurge: add llama-cpp to packages
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | hosts/demiurge/default.nix | 7 |
2 files changed, 7 insertions, 2 deletions
| @@ -32,7 +32,7 @@ | |||
| 32 | }; | 32 | }; |
| 33 | }; | 33 | }; |
| 34 | 34 | ||
| 35 | outputs = { self, home-manager, nixpkgs, nixpkgs-stable, everblush-gtk, agenix, simple-nixos-mailserver, ... }@inputs: { | 35 | outputs = { self, home-manager, nixpkgs, nixpkgs-stable, everblush-gtk, agenix, simple-nixos-mailserver, llama-cpp, ... }@inputs: { |
| 36 | # TODO: deduplicate this | 36 | # TODO: deduplicate this |
| 37 | nixosConfigurations = { | 37 | nixosConfigurations = { |
| 38 | demiurge = nixpkgs.lib.nixosSystem { | 38 | demiurge = nixpkgs.lib.nixosSystem { |
diff --git a/hosts/demiurge/default.nix b/hosts/demiurge/default.nix index 94fd396..c5dc9bf 100644 --- a/hosts/demiurge/default.nix +++ b/hosts/demiurge/default.nix | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | { config, home-manager, lib, pkgs, inputs, ... }: | 1 | { config, home-manager, lib, pkgs, inputs, llama-cpp, ... }: |
| 2 | 2 | ||
| 3 | { | 3 | { |
| 4 | imports = | 4 | imports = |
| @@ -133,6 +133,11 @@ | |||
| 133 | ]; | 133 | ]; |
| 134 | 134 | ||
| 135 | packages = with pkgs; [ | 135 | packages = with pkgs; [ |
| 136 | (llama-cpp.legacyPackages.x86_64-linux.llamaPackages.llama-cpp.override { | ||
| 137 | useVulkan = true; | ||
| 138 | useRocm = true; | ||
| 139 | rocmGpuTargets = "gfx1030"; | ||
| 140 | }) | ||
| 136 | (quartus-prime-lite.override { supportedDevices = [ "MAX 10 FPGA" ]; }) | 141 | (quartus-prime-lite.override { supportedDevices = [ "MAX 10 FPGA" ]; }) |
| 137 | ]; | 142 | ]; |
| 138 | }; | 143 | }; |
