Add ollama and use GPU
This commit is contained in:
parent
3b6800845c
commit
71eb686b81
3 changed files with 9 additions and 0 deletions
|
|
@ -76,4 +76,5 @@
|
||||||
powerOnBoot = false;
|
powerOnBoot = false;
|
||||||
};
|
};
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
|
services.ollama.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,6 @@
|
||||||
./git.nix
|
./git.nix
|
||||||
./thunderbird.nix
|
./thunderbird.nix
|
||||||
./lidswitch.nix
|
./lidswitch.nix
|
||||||
|
./gpu.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
7
nixos/modules/gpu.nix
Normal file
7
nixos/modules/gpu.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ ... }: {
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
enable32Bit = true;
|
||||||
|
};
|
||||||
|
nixpkgs.config.rocmSupport = true;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue