all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: goodoldpaul@autistici.org
To: 41076@debbugs.gnu.org
Subject: [bug#41076] [PATCH] services: For sddm pam service include limits.conf.
Date: Mon, 04 May 2020 15:08:32 +0000	[thread overview]
Message-ID: <7947b43e6d9d8737f5db0d3e3a58db50@autistici.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 695 bytes --]

Hello Guix,
This fixes bug #37380 for SDDM users.

Today I was setting up my system following [0] to use realtime 
scheduling with JACK and SuperCollider. After a lot of failures and a 
lot of help on IRC from rekado I found out that it wasn't me it was just 
a bug.

The bug is the same as [1] and my solution is the same as [2] but for 
SDDM. I tested my patch with the attached system configuration 
(shamelessly copied from [3]).

Thanks,

Giacomo

[0]: 
https://guix.gnu.org/manual/en/html_node/Base-Services.html#index-realtime
[1]: https://issues.guix.gnu.org/issue/37380
[2]: https://issues.guix.gnu.org/issue/37405
[3]: https://lists.gnu.org/archive/html/help-guix/2019-09/msg00065.html

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-services-For-sddm-pam-service-include-limits.conf.patch --]
[-- Type: text/x-diff; name=0001-services-For-sddm-pam-service-include-limits.conf.patch, Size: 1076 bytes --]

From 258238606d0053c7e3df28bd57e931644d8b89f6 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Mon, 4 May 2020 16:58:24 +0200
Subject: [PATCH] services: For "sddm" pam service, include "limits.conf".

* gnu/services/base.scm (pam-limits-service-type): For "sddm" pam
service, include "limits.conf".
---
 gnu/services/base.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 0f119cc2f9..a031ccc04b 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1379,7 +1379,7 @@ information on the configuration file syntax."
                               (module "pam_limits.so")
                               (arguments '("conf=/etc/security/limits.conf")))))
              (if (member (pam-service-name pam)
-                         '("login" "su" "slim" "gdm-password"))
+                         '("login" "su" "slim" "gdm-password" "sddm"))
                  (pam-service
                   (inherit pam)
                   (session (cons pam-limits
-- 
2.26.2


[-- Attachment #3: jack-sddm.scm --]
[-- Type: text/plain, Size: 1539 bytes --]

(use-modules (gnu)
             (gnu services sddm)
	     (gnu services desktop)
	     (gnu services sound)
	     (gnu services xorg)
             (srfi srfi-1))
(operating-system
 (bootloader
  (bootloader-configuration
  (bootloader grub-bootloader)))
  (host-name "jack-os")
 (file-systems (cons
		(file-system
		 (type "ext4")
		 (mount-point "/")
		 (device (file-system-label "my-root")))
		%base-file-systems))
 (timezone "America/Boise")
 (users (cons (user-account
	       (name "user")
	       (comment "not root")
	       (group "users")
	       (password (crypt "ciao" "nr"))
	       (supplementary-groups '("wheel" "netdev"
				       "audio" "video")))
	      %base-user-accounts))
 (packages (cons*
	    (specification->package "ratpoison")
	    (specification->package "xterm")
	    (specification->package "icecat")
	    (specification->package "nss-certs")
	    (specification->package "qjackctl")
	    (specification->package "jack")
	    (specification->package "alsa-plugins")
	    %base-packages))
 (services
  (cons* (service sddm-service-type)
         (pam-limits-service
          (list
           (pam-limits-entry "@audio" 'both 'rtprio 99)
           (pam-limits-entry "@audio" 'both 'memlock 'unlimited)
           (pam-limits-entry "@realtime" 'both 'rtprio 99)
           (pam-limits-entry "@realtime" 'both 'memlock 'unlimited)))
       (remove (lambda (service)
              (eq? (service-kind service) gdm-service-type))
               %desktop-services)))
 (name-service-switch %mdns-host-lookup-nss))

             reply	other threads:[~2020-05-04 15:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-04 15:08 goodoldpaul [this message]
2020-05-05 18:02 ` bug#41076: [PATCH] services: For sddm pam service include limits.conf Marius Bakke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7947b43e6d9d8737f5db0d3e3a58db50@autistici.org \
    --to=goodoldpaul@autistici.org \
    --cc=41076@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.