summaryrefslogtreecommitdiff
path: root/acct-user
diff options
context:
space:
mode:
Diffstat (limited to 'acct-user')
-rw-r--r--acct-user/cynerd/cynerd-0.ebuild61
-rw-r--r--acct-user/cynerd/files/authorized_keys1
2 files changed, 62 insertions, 0 deletions
diff --git a/acct-user/cynerd/cynerd-0.ebuild b/acct-user/cynerd/cynerd-0.ebuild
new file mode 100644
index 0000000..85930cb
--- /dev/null
+++ b/acct-user/cynerd/cynerd-0.ebuild
@@ -0,0 +1,61 @@
+EAPI=7
+
+inherit acct-user
+
+DESCRIPTION="Personal user for Cynerd"
+IUSE="desktop hw-access docker lxd cups wireshark roccat"
+
+ACCT_USER_ID=1000
+ACCT_USER_SHELL=/bin/zsh
+ACCT_USER_HOME=/home/cynerd
+ACCT_USER_GROUPS=(
+ cynerd
+ users
+ wheel
+ portage
+)
+
+DEPEND="
+ sys-apps/shellrc[zsh]
+ desktop? (
+ acct-group/audio
+ acct-group/video
+ acct-group/input
+ acct-group/plugdev
+ media-sound/pulseaudio[system-wide]
+ )
+ hw-access? ( acct-group/usb )
+ docker? ( acct-group/docker )
+ lxd? ( app-emulation/lxd )
+ cups? ( net-print/cups )
+ wireshark? ( net-analyzer/wireshark )
+ roccat? ( sys-apps/roccat-tools )
+"
+
+acct-user_add_deps
+
+pkg_setup() {
+ use desktop && \
+ ACCT_USER_GROUPS+=( audio video input plugdev pulse pulse-access )
+ use hw-access && \
+ ACCT_USER_GROUPS+=( uucp usb )
+ 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() {
+ acct-user_src_install
+
+ insinto "${ACCT_USER_HOME}/.ssh"
+ insopts -m644
+ doins "${FILESDIR}/authorized_keys"
+}
diff --git a/acct-user/cynerd/files/authorized_keys b/acct-user/cynerd/files/authorized_keys
new file mode 100644
index 0000000..4b7ac00
--- /dev/null
+++ b/acct-user/cynerd/files/authorized_keys
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3cs5UOO/epaxSUaO6kDtQlfdS/K5GEJBGK9nH+KcRL4DNQlAGWZsJiJQPuIL3fGlzRLqnPr8YEMbT5sl/moe/gZe2VD5FoAr2dR2fEw5wXXDI90bxbmCWqbyjmRxlKxdKhc6v1BukmuxScsZO0VrUNks1veCGgi1G9w+tY5HevBlMqvDyDpU/H1LN7MVgkCser+ROjRPviDhLaXk6dLKut33SYgce02s5hlvTiWQa+CqeBfRkdiP5VBo/7PQOWsd8GSfCgO0mwhxFowG8cMFyEwMOi70HeNmURtKbd/h6cz0zsdA39fQ8huRWHRd/CQhgIUOsM+W0uPEwkv9HBErx Private key