mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
acct-user/ollama: require video group with cuda
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
3 files changed
+19
-4
No files matched your search
@@ -1,4 +1,4 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -8,7 +8,22 @@ inherit acct-user
|
||||
DESCRIPTION="A user for ollama"
|
||||
ACCT_USER_ID=-1
|
||||
ACCT_USER_HOME=/var/lib/ollama
|
||||
ACCT_USER_HOME_PERMS=0700
|
||||
ACCT_USER_HOME_PERMS=0750
|
||||
ACCT_USER_GROUPS=( ollama )
|
||||
|
||||
IUSE="cuda"
|
||||
|
||||
acct-user_add_deps
|
||||
|
||||
RDEPEND+="
|
||||
cuda? (
|
||||
acct-group/video
|
||||
)
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
# sci-ml/ollama[cuda]
|
||||
if use cuda; then
|
||||
ACCT_USER_GROUPS+=( video )
|
||||
fi
|
||||
}
|
||||
Reference in new issue
Block a user