Skip to content

Commit

Permalink
chore: enable ollama for bismuth testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehamilton committed Oct 28, 2024
1 parent 79ef443 commit 8bb72cb
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 21 deletions.
38 changes: 26 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

# Neovim
neovim.url = "github:jakehamilton/neovim";
neovim.inputs.nixpkgs.follows = "unstable";
# neovim.inputs.nixpkgs.follows = "unstable";

# Tmux
tmux.url = "github:jakehamilton/tmux";
Expand Down
4 changes: 2 additions & 2 deletions modules/nixos/nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ in
] ++ (mapAttrsToList (name: value: value.key) cfg.extra-substituters);
}
// (lib.optionalAttrs config.${namespace}.tools.direnv.enable {
keep-outputs = true;
keep-derivations = true;
# keep-outputs = true;
# keep-derivations = true;
});

gc = {
Expand Down
17 changes: 11 additions & 6 deletions systems/x86_64-linux/bismuth/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ with lib;
with lib.${namespace};
{
imports = [
./hardware.nix
"${inputs.unstable}/nixos/modules/services/misc/ollama.nix"
];
./hardware.nix
"${inputs.unstable}/nixos/modules/services/misc/ollama.nix"
];

disabledModules = [
"${inputs.nixpkgs}/nixos/modules/services/misc/ollama.nix"
];
disabledModules = [
"${inputs.nixpkgs}/nixos/modules/services/misc/ollama.nix"
];

# Resolve an issue with Bismuth's wired connections failing sometimes due to weird
# DHCP issues. I'm not quite sure why this is the case, but I have found that the
Expand Down Expand Up @@ -47,6 +47,11 @@ with lib.${namespace};
rocmOverrideGfx = "10.1.0";
};

systemd.services.ollama.environment = {
OLLAMA_NUM_THREADS = "8";
OLLAMA_MAX_LOADED = "1";
};

environment.systemPackages = with pkgs; [
chromium
plusultra.kalidoface
Expand Down

0 comments on commit 8bb72cb

Please sign in to comment.