made generic container module

This commit is contained in:
ari committed 2024-07-14 15:15:15 -04:00
1 parent ee7931107e
commit 4e13d912b0
11 files changed
+137 -101

No files matched your search

+15 -16
View File
@@ -20,7 +20,7 @@ in
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.useTmpfs = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelPackages = pkgs.linuxPackages_zen;
environment.systemPackages = with pkgs; [
# Amd GPU Support
rocmPackages.rocm-smi
@@ -47,19 +47,18 @@ in
services.ollama = {
enable = true;
acceleration = "rocm";
# listenAddress = "0.0.0.0:11434";
host = "0.0.0.0";
listenAddress = "0.0.0.0:11434";
};
# Brother Printer
hardware.sane.brscan5.enable = true;
# Display Managers
services.xserver.videoDrivers = [ "displaylink" "modesetting" ];
services.xserver.videoDrivers =
[ "displaylink" "modesetting" "amdgpu" "fbdev" ];
services.xserver.displayManager.sessionCommands = ''
${lib.getBin pkgs.xorg.xrandr}/bin/xrandr --setprovideroutputsource 2 0
'';
# Kernel
boot.initrd.kernelModules = [ "amdgpu" "evdi" ];
# hardware.graphics.extraPackages = with pkgs; [ rocmPackages.clr.icd amdvlk ];
# Add Functions
home-manager.users.${user.name}.programs.zsh.initExtra = ''
source ${zshFunctions}
@@ -95,17 +94,17 @@ in
STOP_CHARGE_THRESH_BAT0 = 97; # and above it stops charging
};
};
# services.auto-cpufreq.enable = true;
# services.auto-cpufreq.settings = {
# battery = {
# governor = "powersave";
# turbo = "never";
# };
# charger = {
# governor = "performance";
# turbo = "auto";
# };
# };
services.auto-cpufreq.enable = true;
services.auto-cpufreq.settings = {
battery = {
governor = "powersave";
turbo = "never";
};
charger = {
governor = "performance";
turbo = "auto";
};
};
# Logind
services.logind = {
lidSwitchExternalPower = "suspend-then-hibernate";
+8 -8
View File
@@ -16,16 +16,16 @@
services.ollama = {
enable = true;
acceleration = "cuda";
host = "0.0.0.0";
environmentVariables = {
OLLAMA_LLM_LIBRARY = "cuda";
LD_LIBRARY_PATH = "run/opengl-driver/lib";
NVARCH = "x86_64";
NV_CUDA_CUDART_VERSION = "11.3.1";
NVIDIA_VISIBLE_DEVICES = "all";
};
# environmentVariables = {
# OLLAMA_LLM_LIBRARY = "cuda";
# LD_LIBRARY_PATH = "run/opengl-driver/lib";
# NVARCH = "x86_64";
# NV_CUDA_CUDART_VERSION = "11.3.1";
# NVIDIA_VISIBLE_DEVICES = "all";
# };
};
# Nvidia Settings
services.xserver.videoDrivers = [ "nvidia" "modesetting" "fbdev" ];
hardware.graphics = { enable = true; };
hardware.nvidia = {
modesetting.enable = true;