blob: 3b440bd297064b07bf232b730fd16294d34dfad2 (
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
64
65
66
67
|
EAPI=7
inherit acct-user
DESCRIPTION="Personal user for Cynerd"
IUSE="alsa pulseaudio cups X wayland docker lxd wireshark roccat"
ACCT_USER_ID=1000
ACCT_USER_SHELL=/bin/zsh
ACCT_USER_HOME=/home/cynerd
ACCT_USER_GROUPS=(
cynerd
wheel
usb
)
RDEPEND="
sys-apps/shellrc[zsh]
alsa? ( acct-group/audio )
pulseaudio? ( media-sound/pulseaudio )
cups? ( net-print/cups )
X? (
acct-group/video
acct-group/input
acct-group/plugdev
)
wayland? (
acct-group/video
acct-group/input
acct-group/plugdev
)
docker? ( acct-group/docker )
lxd? ( app-emulation/lxd )
wireshark? ( net-analyzer/wireshark )
roccat? ( sys-apps/roccat-tools )
"
acct-user_add_deps
pkg_setup() {
ACCT_USER_GROUPS+=( users portage uucp )
use alsa && \
ACCT_USER_GROUPS+=( audio )
use pulseaudio && \
ACCT_USER_GROUPS+=( pulse pulse-access )
{ use X || use wayland; } && \
ACCT_USER_GROUPS+=( video input plugdev )
use docker && \
ACCT_USER_GROUPS+=( docker )
use lxd && \
ACCT_USER_GROUPS+=( lxd )
use cups && \
ACCT_USER_GROUPS+=( lp lpadmin )
use wireshark && \
ACCT_USER_GROUPS+=( wireshark )
use roccat && \
ACCT_USER_GROUPS+=( roccat )
true
}
src_install() {
insinto "${ACCT_USER_HOME}/.ssh"
insopts -m644
doins "${FILESDIR}/authorized_keys"
}
|