aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostclass/desktop
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-10-31 21:36:39 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-10-31 21:36:39 -0400
commit2c9845db4bc00221bc3c2343a020208f7f532166 (patch)
tree843bc24a1bbf2cad33c4bdc8a17c3d0d838fceb4 /scripts/hostclass/desktop
parent7eb111136453d0e8d8451d7dd85ba9892318f294 (diff)
downloadinfrastructure-2c9845db4bc00221bc3c2343a020208f7f532166.tar.gz
many fixes
Diffstat (limited to 'scripts/hostclass/desktop')
-rw-r--r--scripts/hostclass/desktop17
1 files changed, 13 insertions, 4 deletions
diff --git a/scripts/hostclass/desktop b/scripts/hostclass/desktop
index bddce05..629ebc0 100644
--- a/scripts/hostclass/desktop
+++ b/scripts/hostclass/desktop
@@ -27,13 +27,14 @@ set_loader_conf \
linux_load=YES \
linux64_load=YES
+# Enable FUSE.
+set_loader_conf fusefs_load=YES
+
# Install packages common to all DEs.
pkg install -y $desktop_common_packages
-# Install scripts for creating local (non-NFS) home directories.
-install_file -m 0555 \
- /usr/local/libexec/pam-create-local-homedir \
- /etc/profile.d/local-homedir.sh
+# Install profile script for improving experience on NFS homedirs.
+install_file -m 0555 /etc/profile.d/local-homedir.sh
# Create ZFS dataset for local homedirs.
create_dataset -o mountpoint=/usr/local/home "${state_dataset}/home"
@@ -66,6 +67,9 @@ service webcamd status || service webcamd start
install_file -m 0644 /usr/local/etc/xdg/autostart/nss-trust-root-ca.desktop
install_file -m 0555 /usr/local/libexec/nss-trust-root-ca
+# Install gajim desktop file.
+install_file -m 0644 /usr/local/share/applications/gajim.desktop
+
case $desktop_type in
i3)
pkg install -y $desktop_i3_packages
@@ -97,6 +101,11 @@ case $desktop_type in
/usr/local/etc/xdg/plasma-workspace/shutdown
install_file -m 0555 /usr/local/etc/xdg/plasma-workspace/shutdown/cleanup.sh
+ # Disable user switching
+ # Broken with consolekit: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221452
+ # VT switch causes loss of graphics acceleration: https://github.com/freebsd/drm-kmod/issues/175
+ install_file -m 0644 /usr/local/etc/xdg/kdeglobals
+
# Enable sddm.
sysrc -v sddm_enable=YES
;;