blob: e276b17916427b49449773e4a179c647af63f79f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{
config,
lib,
pkgs,
inputs,
...
}:
let
unstable = import inputs.nixpkgs-unstable {
system = "x86_64-linux";
config.allowUnfree = true;
config.rocmSupport = true;
};
in
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
../../modules/common.nix
];
boot.loader.grub = {
enable = true;
device = "nodev";
efiSupport = true;
};
boot.loader.efi.canTouchEfiVariables = false;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
networking.hostName = "desktop";
networking.wireless.iwd.enable = true;
networking.wireless.iwd.settings = {
General.EnableNetworkConfiguration = true;
};
networking.nameservers = [
"1.1.1.1"
"8.8.8.8"
];
services.xserver.videoDrivers = [ "amdgpu" ];
services.ollama = {
enable = true;
package = unstable.ollama;
acceleration = "rocm";
rocmOverrideGfx = "10.3.0";
environmentVariables = {
# This forces ROCm to see ONLY the RX 6800.
# On most Ryzen 7000 systems, '0' is the dGPU and '1' is the iGPU.
HIP_VISIBLE_DEVICES = "0";
ROCR_VISIBLE_DEVICES = "0";
# Keep these for RDNA 2 stability with 26B models
HSA_OVERRIDE_GFX_VERSION = "10.3.0";
HSA_ENABLE_SDMA = "0";
};
};
environment.variables.HSA_OVERRIDE_GFX_VERSION = "10.3.0";
system.stateVersion = "25.11";
}
|