europa: enable ollama, add a watcher for enabling acceleration
This commit is contained in:
parent
1d86fa08fc
commit
1c95252d10
@ -7,7 +7,7 @@
|
||||
}:
|
||||
let
|
||||
inherit (inputs.stable.legacyPackages.${pkgs.system}) chirp beets;
|
||||
inherit (xinlib) jobToUserService;
|
||||
inherit (xinlib) jobToUserService prIsOpen;
|
||||
peerixUser =
|
||||
if builtins.hasAttr "peerix" config.users.users
|
||||
then config.users.users.peerix.name
|
||||
@ -190,6 +190,10 @@ in
|
||||
services.xinCA = { enable = false; };
|
||||
|
||||
services = {
|
||||
ollama = {
|
||||
enable = true;
|
||||
acceleration = prIsOpen.str 306375 "rocm";
|
||||
};
|
||||
rkvm.server = {
|
||||
enable = true;
|
||||
settings = {
|
||||
@ -301,6 +305,11 @@ in
|
||||
user.services =
|
||||
lib.listToAttrs (builtins.map jobToUserService jobs);
|
||||
services = {
|
||||
ollama = {
|
||||
environment = {
|
||||
OLLAMA_ORIGINS = "*";
|
||||
};
|
||||
};
|
||||
"whytailscalewhy" = {
|
||||
description = "Tailscale restart on resume";
|
||||
wantedBy = [ "post-resume.target" ];
|
||||
@ -367,6 +376,7 @@ in
|
||||
nix-top
|
||||
nmap
|
||||
obsidian
|
||||
ollama
|
||||
openscad
|
||||
picocom
|
||||
proton-caller
|
||||
|
@ -8,6 +8,15 @@ let
|
||||
in
|
||||
prStatus;
|
||||
prIsOpen = {
|
||||
str = pr: a:
|
||||
let
|
||||
prStatus = getPrStatus pr;
|
||||
in
|
||||
if prStatus.status == "open"
|
||||
then
|
||||
lib.warn
|
||||
"PR: ${toString pr} (${prStatus.title}) is open.. disabling option" null
|
||||
else a;
|
||||
option = pr: a:
|
||||
let
|
||||
prStatus = getPrStatus pr;
|
||||
|
20
pull_requests/306375.json
Normal file
20
pull_requests/306375.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"branches": [
|
||||
"master",
|
||||
"staging",
|
||||
"staging-next"
|
||||
],
|
||||
"error": "",
|
||||
"pull_request": 306375,
|
||||
"release": "unstable",
|
||||
"status": "open",
|
||||
"status_info": {
|
||||
"master": true,
|
||||
"nixos-unstable": false,
|
||||
"nixos-unstable-small": false,
|
||||
"nixpkgs-unstable": false,
|
||||
"staging": true,
|
||||
"staging-next": true
|
||||
},
|
||||
"title": "rocmPackages: use CMake 3.9.2 when building clr"
|
||||
}
|
Loading…
Reference in New Issue
Block a user