Joey Hafner
4e9d6dec6a
- Delete homeManagerConfigurations from flake. - Delete laptop nixosConfiguration. - Delete `home-manager/` and `nixos/` directories. - Switch from one general "vars" attrset for variables to using built-for-purpose attrsets for variables, each declared where it makes most sense (e.g. the "sys" attrset will be used for system-specific attributes). - Create `systems/` directory for root-level system configurations and `modules/` directory for re-usable config files. - Consolidate most app and system configuration into the `desktop-environment.nix` and `terminal-environment.nix` files. - Standardize all `.nix` files to nixos config nodes, as opposed to home-manager. May reverse this decision. - Use `${sys.username}` for the username of the primary user of the system. - Use `${usr.${sys.username}}` for attributes related to that user (e.g. realname, email).
19 lines
494 B
Nix
19 lines
494 B
Nix
{ pkgs, ... }: {
|
|
imports = [
|
|
../../modules/services/ssh.nix
|
|
../../modules/services/flatpak.nix
|
|
../../modules/services/minecraft-server.nix
|
|
];
|
|
services.ollama = {
|
|
enable = true;
|
|
port = 11434;
|
|
host = "127.0.0.1";
|
|
home = "/var/lib/ollama";
|
|
group = "users";
|
|
models = "/var/lib/ollama/models";
|
|
loadModels = [ "llama3.2:3b" "llama3.1:8b" "codellama:13b" ];
|
|
package = pkgs.ollama-rocm;
|
|
rocmOverrideGfx = "11.0.0";
|
|
acceleration = "rocm";
|
|
};
|
|
} |