Skip to content

Commit

Permalink
feat(nvvm): add ollama
Browse files Browse the repository at this point in the history
  • Loading branch information
nevivurn committed Jan 30, 2025
1 parent 3a65e58 commit c580727
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
14 changes: 5 additions & 9 deletions systems/nvvm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ in
inputs.self.nixosModules.default

./services/openssh.nix
./services/ollama.nix
];

## Filesystems
Expand Down Expand Up @@ -86,15 +87,10 @@ in
};
services.xserver.videoDrivers = [ "nvidia" ];

nixpkgs.config.allowUnfreePredicate = (
pkg:
builtins.elem (lib.getName pkg) [
"nvidia-x11"
"nvidia-settings"
"p7zip"
"nvidia-persistenced"
]
);
nixpkgs.config = {
cudaSupport = true;
allowUnfree = true;
};
nix.settings = {
substituters = [ "https://cuda-maintainers.cachix.org" ];
trusted-public-keys = [
Expand Down
5 changes: 5 additions & 0 deletions systems/nvvm/services/ollama.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
services.ollama = {
enable = true;
};
}

0 comments on commit c580727

Please sign in to comment.