diff --git a/mkosi.extra/usr/lib/systemd/system.conf.d/00-kde-linux-default.conf b/mkosi.extra/usr/lib/systemd/system.conf.d/00-kde-linux-default.conf index cb064cd..b02ae3e 100644 --- a/mkosi.extra/usr/lib/systemd/system.conf.d/00-kde-linux-default.conf +++ b/mkosi.extra/usr/lib/systemd/system.conf.d/00-kde-linux-default.conf @@ -1,7 +1,14 @@ # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL # SPDX-FileCopyrightText: 2023 Harald Sitter +# SPDX-FileCopyrightText: 2025 Thomas Duckworth [Manager] TimeoutStartSec=8s DefaultTimeoutStartSec=16s DefaultTimeoutStopSec=8s +# Increase the maximum locked memory limit to allow apps which may require this +# to lock more memory, such as digital audio workstations. +DefaultLimitMEMLOCK=infinity +# Increase the number of file descriptors available to user processes +# to allow apps which may require this to open more files simultaneously. +DefaultLimitNOFILE=4096:524288 \ No newline at end of file diff --git a/mkosi.extra/usr/lib/systemd/user.conf.d/00-kde-linux-default.conf b/mkosi.extra/usr/lib/systemd/user.conf.d/00-kde-linux-default.conf index 0f1be80..0b6acef 100644 --- a/mkosi.extra/usr/lib/systemd/user.conf.d/00-kde-linux-default.conf +++ b/mkosi.extra/usr/lib/systemd/user.conf.d/00-kde-linux-default.conf @@ -1,7 +1,14 @@ # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL # SPDX-FileCopyrightText: 2025 Hadi Chokr +# SPDX-FileCopyrightText: 2025 Thomas Duckworth [Manager] TimeoutStartSec=8s DefaultTimeoutStartSec=16s DefaultTimeoutStopSec=8s +# Increase the maximum locked memory limit to allow apps which may require this +# to lock more memory, such as digital audio workstations. +DefaultLimitMEMLOCK=infinity +# Increase the number of file descriptors available to user processes +# to allow apps which may require this to open more files simultaneously. +DefaultLimitNOFILE=4096:524288 \ No newline at end of file diff --git a/mkosi.extra/usr/share/factory/etc/security/limits.d/00-kde-linux-default.conf b/mkosi.extra/usr/share/factory/etc/security/limits.d/00-kde-linux-default.conf new file mode 100644 index 0000000..c61ef78 --- /dev/null +++ b/mkosi.extra/usr/share/factory/etc/security/limits.d/00-kde-linux-default.conf @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL +# SPDX-FileCopyrightText: 2025 Thomas Duckworth + +# This sets the open file limit and memory lock limit for the users logged in via PAM, +# more specifically, users logged in on via SSH or tty (console). +# Limits related to terminals in graphical sessions depend on a +# change in /usr/lib/systemd/user.conf.d or system.conf.d config files. +# This does not affect the open file limit or memory lock limit of system services. + +# Increase the number of file descriptors available to user processes +# to allow apps which may require this to open more files simultaneously. +* soft nofile 4096 +* hard nofile 524288 + +# Increase the maximum locked memory limit to allow apps which may require this +# to lock more memory, such as digital audio workstations. +* soft memlock 2147484 +* hard memlock 2147484 \ No newline at end of file