europa: enable ollama, add a watcher for enabling acceleration
This commit is contained in:
parent
1d86fa08fc
commit
1c95252d10
@ -7,7 +7,7 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (inputs.stable.legacyPackages.${pkgs.system}) chirp beets;
|
inherit (inputs.stable.legacyPackages.${pkgs.system}) chirp beets;
|
||||||
inherit (xinlib) jobToUserService;
|
inherit (xinlib) jobToUserService prIsOpen;
|
||||||
peerixUser =
|
peerixUser =
|
||||||
if builtins.hasAttr "peerix" config.users.users
|
if builtins.hasAttr "peerix" config.users.users
|
||||||
then config.users.users.peerix.name
|
then config.users.users.peerix.name
|
||||||
@ -190,6 +190,10 @@ in
|
|||||||
services.xinCA = { enable = false; };
|
services.xinCA = { enable = false; };
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
ollama = {
|
||||||
|
enable = true;
|
||||||
|
acceleration = prIsOpen.str 306375 "rocm";
|
||||||
|
};
|
||||||
rkvm.server = {
|
rkvm.server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@ -301,6 +305,11 @@ in
|
|||||||
user.services =
|
user.services =
|
||||||
lib.listToAttrs (builtins.map jobToUserService jobs);
|
lib.listToAttrs (builtins.map jobToUserService jobs);
|
||||||
services = {
|
services = {
|
||||||
|
ollama = {
|
||||||
|
environment = {
|
||||||
|
OLLAMA_ORIGINS = "*";
|
||||||
|
};
|
||||||
|
};
|
||||||
"whytailscalewhy" = {
|
"whytailscalewhy" = {
|
||||||
description = "Tailscale restart on resume";
|
description = "Tailscale restart on resume";
|
||||||
wantedBy = [ "post-resume.target" ];
|
wantedBy = [ "post-resume.target" ];
|
||||||
@ -367,6 +376,7 @@ in
|
|||||||
nix-top
|
nix-top
|
||||||
nmap
|
nmap
|
||||||
obsidian
|
obsidian
|
||||||
|
ollama
|
||||||
openscad
|
openscad
|
||||||
picocom
|
picocom
|
||||||
proton-caller
|
proton-caller
|
||||||
|
@ -8,6 +8,15 @@ let
|
|||||||
in
|
in
|
||||||
prStatus;
|
prStatus;
|
||||||
prIsOpen = {
|
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:
|
option = pr: a:
|
||||||
let
|
let
|
||||||
prStatus = getPrStatus pr;
|
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