nixpkgs: 0-unstable-2024-12-30 -> 0-unstable-2025-01-01
This commit is contained in:
@@ -52,7 +52,8 @@
|
||||
# needed to use libimobiledevice/ifuse, for iphone sync
|
||||
services.usbmuxd.enable = true;
|
||||
|
||||
hardware.amdgpu.opencl.enable = true; # desktop (AMD's opencl implementation AKA "ROCM"); probably required for ollama
|
||||
# TODO(2025-01-01): re-enable once rocm build is fixed: <https://github.com/NixOS/nixpkgs/pull/367695>
|
||||
# hardware.amdgpu.opencl.enable = true; # desktop (AMD's opencl implementation AKA "ROCM"); probably required for ollama
|
||||
|
||||
# TODO: enable snapper (need to make `/nix` or `/nix/persist` a subvolume, somehow).
|
||||
# default config: https://man.archlinux.org/man/snapper-configs.5
|
||||
|
@@ -106,6 +106,7 @@ in
|
||||
conveniencePackages = [
|
||||
config.boot.kernelPackages.cpupower # <repo:nixos/nixpkgs:nixos/modules/tasks/cpu-freq.nix> places it on PATH for convenience if powerManagement.cpuFreqGovernor is set
|
||||
pkgs.kbd # <repo:nixos/nixpkgs:nixos/modules/config/console.nix> places it on PATH as part of console/virtual TTYs, but probably not needed unless you want to set console fonts
|
||||
pkgs.nixos-firewall-tool # <repo:nixos/nixpkgs:nixos/modules/services/networking/firewall.nix> for end-user management of the firewall? cool but doesn't cross-compile
|
||||
];
|
||||
in lib.filter (p: ! builtins.elem p (requiredPackages ++ conveniencePackages));
|
||||
};
|
||||
|
@@ -69,7 +69,7 @@ in
|
||||
services.ollama.models = models;
|
||||
|
||||
# these acceleration settings are relevant to `desko`.
|
||||
services.ollama.acceleration = "rocm"; # AMD GPU acceleration (achieves the same as `nixpkgs.config.rocmSupport = true` but just for ollama)
|
||||
services.ollama.acceleration = lib.mkIf config.hardware.amdgpu.opencl.enable "rocm"; # AMD GPU acceleration (achieves the same as `nixpkgs.config.rocmSupport = true` but just for ollama)
|
||||
services.ollama.rocmOverrideGfx = "10.1.0"; #< `nix-shell -p "rocmPackages.rocminfo" --run "rocminfo" | grep "gfx"`
|
||||
# services.ollama.environmentVariables.HCC_AMDGPU_TARGET = "gfx1010"; # seems to be unnecessary
|
||||
|
||||
|
@@ -8,8 +8,8 @@
|
||||
mkNixpkgs ? import ./mkNixpkgs.nix {}
|
||||
}:
|
||||
mkNixpkgs {
|
||||
rev = "7dcdf9d94b96cc7f2e1726c79aa672ce4bcf824b";
|
||||
sha256 = "sha256-d4WLRw1ZPh2K9OAeNgDUvyzTfXScrSkAiJhjtX9VYYg=";
|
||||
version = "0-unstable-2024-12-30";
|
||||
rev = "f0c2751b5e11520e29549adc1563ba1fc1e759fe";
|
||||
sha256 = "sha256-CCzIhf4yt9INU/sPRVMLzg5gOzkekQ1KWzNcKbj1BxQ=";
|
||||
version = "0-unstable-2025-01-01";
|
||||
branch = "master";
|
||||
}
|
||||
|
@@ -54,10 +54,25 @@ in
|
||||
})
|
||||
|
||||
(fetchpatch' {
|
||||
# 2024-12-26: required to build ollama (with AMD acceleration)
|
||||
name = "rocm-6: bump packages to 6.3.1 and add missing packages";
|
||||
prUrl = "https://github.com/NixOS/nixpkgs/pull/367695";
|
||||
hash = "sha256-6XXgSCXhC5DneSICguPtdnjX00SVJeiHxmJ55MoB+Xs=";
|
||||
# 2025-01-01: required to fix servo build
|
||||
name = "jackett: 0.22.1109 -> 0.22.1177";
|
||||
prUrl = "https://github.com/NixOS/nixpkgs/pull/370024";
|
||||
hash = "sha256-V7J78ss+zKtnqj4aLAhNjG6GEkgPPyTNcu2uDKRCxRA=";
|
||||
})
|
||||
|
||||
# (fetchpatch' {
|
||||
# # 2024-12-26: required to build ollama (with AMD acceleration)
|
||||
# name = "rocm-6: bump packages to 6.3.1 and add missing packages";
|
||||
# prUrl = "https://github.com/NixOS/nixpkgs/pull/367695";
|
||||
# # hash = "sha256-6XXgSCXhC5DneSICguPtdnjX00SVJeiHxmJ55MoB+Xs=";
|
||||
# hash = "sha256-Hzz+aAzdgdnTu4jvLqpHzdIE3xYMP02/EuA+KvFbUeI=";
|
||||
# })
|
||||
|
||||
(fetchpatch' {
|
||||
# 2025-01-01: testing before merge
|
||||
name = "bonsai: 1.2.0 -> 1.2.1";
|
||||
prUrl = "https://github.com/NixOS/nixpkgs/pull/369918";
|
||||
hash = "sha256-FriPCssLFBEuHnagHJFP2OXT/EB1ywAYvosYPcjU/68=";
|
||||
})
|
||||
|
||||
(fetchpatch' {
|
||||
|
Reference in New Issue
Block a user