From patchwork Thu Aug 19 14:38:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32187 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C962F27BC78; Thu, 19 Aug 2021 15:43:39 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8A52227BC6B for ; Thu, 19 Aug 2021 15:43:39 +0100 (BST) Received: from localhost ([::1]:59834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGjGc-0005IK-LS for patchwork@mira.cbaines.net; Thu, 19 Aug 2021 10:43:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGjD8-0006Ud-Ex for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGjD8-0005tP-55 for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGjD8-0000Km-1h for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v4 01/10] gnu: crates-io: Add rust-enquote 1.0.3 Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Aug 2021 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49969 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.16293839671151 (code B ref 49969); Thu, 19 Aug 2021 14:40:02 +0000 Received: (at 49969) by debbugs.gnu.org; 19 Aug 2021 14:39:27 +0000 Received: from localhost ([127.0.0.1]:60548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCZ-0000IU-7b for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:27 -0400 Received: from mail-ej1-f42.google.com ([209.85.218.42]:38871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCT-0000Hd-JU for 49969@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:22 -0400 Received: by mail-ej1-f42.google.com with SMTP id z20so13409667ejf.5 for <49969@debbugs.gnu.org>; Thu, 19 Aug 2021 07:39:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=hVMJiMZrCDmRRBKI4Op5PPeRX5HGfsylxhPwiGBmOYw=; b=BZUivYRP7XnCzVUAlUo6pQlueqIpdSRhk0yczjQK8noAD3sXtrCdcO5tTQKgE/ZTTh z/eI8Y1C97ZKE2a9g4bRYiCBPuSTYcY03Ae0BbPduk7TQ8Orlbh5IROEa7DEoFo3W98Q 0WneWkFcUNJ42mJKaaZQYzu8I2FK8OQOub0GhwhrQLYX20IfVQQpoyMrUVSPSVrfcZ/l +y3eGBkurY7nNoV6ZarPjusI9Lkj0UjWrNs4rxmiwrvq8atEh6c9kE2qTYTelzdGDh+v Md5t90THY4wfhUxl7qj0O7Gk/ELPGcKHbICarH8Wu2cLhnBhZ9iRgDE8UBAS9U1Z+vlM KA+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hVMJiMZrCDmRRBKI4Op5PPeRX5HGfsylxhPwiGBmOYw=; b=L99ytuIvwCZ9rHhUVNP98hHasDwYaeJDD/R5vJsfoIvCWaks4d6g3R6UWyvyYyrLfh s2kq22UDRNOUFTwI+OWmFXTbbcnEPXApAee4g+dGGZODg2ItgaS7xkft7ZCPq1kkdOu1 doo98Mylo18M7mYVLFiXyQiAsKXFakxoGYzmCnipTp7/ab16KdfsW0UW8iLjrOYQQ81w WO9XyKVa9HYuZQzBcETBcoV2DEZlAeOuxV9/gtzRdZ1bX4aPldCOEf2Rb9d9jONmcdQ3 aM0dz3ijfy6fVtAvKmhTJU6svR+dRUke8DCMWbYK2xC3KsWPKwq25XO7mbW+Mt3xSCGY 5UgA== X-Gm-Message-State: AOAM530m0p3PmRgRZTHaOsDlOf1ij9eMuJVMdlTPEVXxjpv+l/9DAOlB XubhVze+Tg5SrdTa6+Ruhfh0RupLAV8gIA== X-Google-Smtp-Source: ABdhPJxfwqMdR+58xpnmqotConpPozyGHxEaYKwfYb0ldBi9A1JfJuvOohnIEIbQ+1GdwNyPxNQUEA== X-Received: by 2002:a17:907:c11:: with SMTP id ga17mr15552290ejc.298.1629383954893; Thu, 19 Aug 2021 07:39:14 -0700 (PDT) Received: from localhost.localdomain ([188.58.13.35]) by smtp.gmail.com with ESMTPSA id b8sm1825954edv.96.2021.08.19.07.39.13 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 07:39:14 -0700 (PDT) From: muradm Date: Thu, 19 Aug 2021 17:38:57 +0300 Message-Id: <20210819143906.6705-1-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819143133.6398-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-io.scm (rust-enquote-1): Add rust-enquote 1.0.3 --- gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 24cc772ba7..6484d4c4fc 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -18,6 +18,7 @@ ;;; Copyright © 2021 Antero Mejr ;;; Copyright © 2021 Maxim Cournoyer ;;; Copyright © 2021 Vinicius Monego +;;; Copyright © 2021 muradm ;;; ;;; This file is part of GNU Guix. ;;; @@ -56972,3 +56973,24 @@ variant of this library is available separately as @code{im}.") (description "Generate Rust register maps (`struct`s) from SVD files") (license (list license:expat license:asl2.0)))) + +(define-public rust-enquote-1 + (package + (name "rust-enquote") + (version "1.0.3") + (home-page "https://github.com/reujab/enquote") + (source + (origin + (method url-fetch) + (uri (crate-uri "enquote" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0vm687r2wwgc3d3l2iqhag9wgkql6k93sdvjxvmfkdpksajpij1f")))) + (build-system cargo-build-system) + (synopsis + "A Rust library quotes, unquotes, and unescapes strings") + (description + "A Rust library quotes, unquotes, and unescapes strings") + (license license:unlicense))) From patchwork Thu Aug 19 14:38:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32186 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E5B8527BC78; Thu, 19 Aug 2021 15:43:30 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9D90127BC6B for ; Thu, 19 Aug 2021 15:43:30 +0100 (BST) Received: from localhost ([::1]:58964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGjGT-0004iV-OQ for patchwork@mira.cbaines.net; Thu, 19 Aug 2021 10:43:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGjD8-0006Sr-0H for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGjD7-0005su-Mc for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGjD7-0000Kf-JN for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v4 02/10] gnu: crates-io: Add rust-pam-sys 0.5.6 Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Aug 2021 14:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49969 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.16293839631122 (code B ref 49969); Thu, 19 Aug 2021 14:40:01 +0000 Received: (at 49969) by debbugs.gnu.org; 19 Aug 2021 14:39:23 +0000 Received: from localhost ([127.0.0.1]:60543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCV-0000I0-0V for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:23 -0400 Received: from mail-ej1-f42.google.com ([209.85.218.42]:44981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCT-0000Hf-Vm for 49969@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:22 -0400 Received: by mail-ej1-f42.google.com with SMTP id bq25so13357247ejb.11 for <49969@debbugs.gnu.org>; Thu, 19 Aug 2021 07:39:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=5UKAphfDxOzm3bwyBiHJxbodPH6X2Jnn4XQw6tMBdHI=; b=0f5sMz4i/L8KznZCIj/O3euEtweM6g59UGWh83FRnLz9tZh/1B8X85fUQXAL4fHbAz UtAQ2EZ4QKQZG4qk3GzSuF3Vv8AzmC5/iuOT8koha3f/mvZ0N3yEuvJb58YvoxI0zN9i r4ONudzkGjLFmMlgP6cBcM4eFi6NybZg1FV2TVho/OvutpOUNwtFVeZN7NV7iO3N37pG De+4IlaIMZbM238PPaFZEb6Ezw7jyQKhIG1dtQu8KpYDW8QwAQSiNH547fDpuF27zT7K ICjF1xCZBCj4gRPWFwOROCn3YTpzoxS0EhJpS+JZ290hkELM3gywCERZtU2VfMUTEDEr PRKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5UKAphfDxOzm3bwyBiHJxbodPH6X2Jnn4XQw6tMBdHI=; b=ayWDj2PErlOh93IENQ9qAD04r18TwkL/5FW9piToXDQsnUIHeCDnc6DMzQaoi1pAJw wruz2QT6naTExIHQlsM7/74AWhbItzxEvDQP7QvPFvqtwnDvw0AUQwNDhzudQRehKfnQ wbcrjHogqb9x8Rxh3R2N5mXT2rU3zzIvJy1zgYDDv8N/WYowme9Ln8Jyx8icS3MxIdky fwYgczI1WPwyj6rdxAAalzVsFbmqjxNVMCJnO2Ms79oHSST2zdOIHcGxKadDET5pVMSc +MJujZrYvfNhLrDb5fj0WJyowYeI2/umODoCjADtdNF76IpItPBu3lzHS025+8uNEzGp IOvA== X-Gm-Message-State: AOAM530JI103n9OJO8LFQP45FOsyzeeWOrmWI0r43eg9dn4fEFL802TF 0RvNLbXl7lmpx/4Pm2n5x58+1goSXvAUSA== X-Google-Smtp-Source: ABdhPJzsthxjmjgz9buYvI3eFWwK5zbbhXjM7W01aipcAy3CocU4EAYJDCw4KjOXouT4ALyuFWlpMQ== X-Received: by 2002:a17:906:7d83:: with SMTP id v3mr16161766ejo.216.1629383956165; Thu, 19 Aug 2021 07:39:16 -0700 (PDT) Received: from localhost.localdomain ([188.58.13.35]) by smtp.gmail.com with ESMTPSA id b8sm1825954edv.96.2021.08.19.07.39.15 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 07:39:15 -0700 (PDT) From: muradm Date: Thu, 19 Aug 2021 17:38:58 +0300 Message-Id: <20210819143906.6705-2-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819143133.6398-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-io.scm (rust-pam-sys): Add rust-pam-sys 0.5.6 --- gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 6484d4c4fc..d91417d76f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -55,6 +55,7 @@ #:use-module (gnu packages glib) #:use-module (gnu packages image) #:use-module (gnu packages jemalloc) + #:use-module (gnu packages linux) #:use-module (gnu packages llvm) #:use-module (gnu packages multiprecision) #:use-module (gnu packages nettle) @@ -56994,3 +56995,29 @@ variant of this library is available separately as @code{im}.") (description "A Rust library quotes, unquotes, and unescapes strings") (license license:unlicense))) + +(define-public rust-pam-sys-0.5.6 + (package + (name "rust-pam-sys") + (version "0.5.6") + (home-page "https://github.com/1wilkens/pam-sys") + (source + (origin + (method url-fetch) + (uri (crate-uri "pam-sys" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0d14501d5vybjnzxfjf96321xa5wa36x1xvf02h02zq938qmhj6d")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-libc" ,rust-libc-0.2)))) + (native-inputs + `(("linux-pam" ,linux-pam))) + (synopsis + "Rust FFI wrappers for the Linux Pluggable Authentication Modules (PAM)") + (description + "Rust FFI wrappers for the Linux Pluggable Authentication Modules (PAM)") + (license (list license:expat license:asl2.0)))) From patchwork Thu Aug 19 14:38:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32183 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id CBD8027BC78; Thu, 19 Aug 2021 15:41:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 20FF227BC6B for ; Thu, 19 Aug 2021 15:41:12 +0100 (BST) Received: from localhost ([::1]:51204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGjEF-0007tM-5F for patchwork@mira.cbaines.net; Thu, 19 Aug 2021 10:41:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGjD8-0006W5-SF for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49025) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGjD8-0005tb-IG for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGjD8-0000Ku-F4 for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v4 03/10] gnu: freedesktop: Add greetd 0.7.0 Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Aug 2021 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49969 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.16293839731184 (code B ref 49969); Thu, 19 Aug 2021 14:40:02 +0000 Received: (at 49969) by debbugs.gnu.org; 19 Aug 2021 14:39:33 +0000 Received: from localhost ([127.0.0.1]:60551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCZ-0000IW-Ft for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:32 -0400 Received: from mail-ej1-f44.google.com ([209.85.218.44]:37782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCV-0000Hh-8j for 49969@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:25 -0400 Received: by mail-ej1-f44.google.com with SMTP id h9so13442173ejs.4 for <49969@debbugs.gnu.org>; Thu, 19 Aug 2021 07:39:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=iKIEPRgsK/zmp47VzGKwZKvsHQHZQ4+FxLcUWNU5T9A=; b=1mz/agn36BSOP3irCIwVLa5y2/CpPJGYmWH5eGJ+iQduMhAqhl+GtnA9b4dH5+v8pS DN3gQTaXK1cGFb6bKrLgwwsDXzDgSLSV7+yj/xhTQsF+EnI5jmTWoEpMuMDMwIZYctqD BHbNL7LaGYX4uvNBF611h3zWQeesq4BlwHyIONjCPYPI4XlPn5fmyTRJxvmDYLTXFsbM medscKoenQxy4U8SJZYI1V+glWFyGJO4+T+HvCNXUabp3M1gdyDDv47pDwJlwR+8v+9+ 3eL5ku/lXL77kNAkTdCLRDc4Ov33MUeXYambAsTpwBbrHoRriinD3jHJbfCSJqiGxIAe +0ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iKIEPRgsK/zmp47VzGKwZKvsHQHZQ4+FxLcUWNU5T9A=; b=fqNYjtAxsvDdbfRQX93PED3HJ+0yolFmaMmlAgYVqWzofb6cwM2XqnpcgBIPMqaIfl jolmx5Xaz4EWy3GhT+mYFQ+K7g+cG8+siaXKi/v4GnrEvnoJs6xX86VW0NoDBvY71DWm /4zTR0c6ogLqzurVwx0On3nLALakrwMVTtq8ARGF6KwoZxwVA98ywn2HrnppdxNB2HGT +kOUgoE3HfPP+yMQI6Lmt8blZw4u/LEjfngYVJT7bbqS0siSIoy35uo1Oa8JZeG3Oh1i Rvak1ponVaVwgKkxBGQ25FBgxUNfCQ9f32WBigGJPpZbiFt7w4hyPEfLv84+4qa3NpKP 8OEw== X-Gm-Message-State: AOAM530MaqMdvL0F2OF4F3MpbgCLo+qPlMvaJ2/LjRkvNGLB65PefNJw 81ODzLncOYVWTa4405YHX6LoyxEw+VgxLQ== X-Google-Smtp-Source: ABdhPJyf0rx8eNbFZe4YbRUnxic2xAkAq+xFGsm0gf3T7X6Qg7J7pcs1KjkwBHFiDaNlh7k8SOatuA== X-Received: by 2002:a17:906:b09:: with SMTP id u9mr15681539ejg.496.1629383957344; Thu, 19 Aug 2021 07:39:17 -0700 (PDT) Received: from localhost.localdomain ([188.58.13.35]) by smtp.gmail.com with ESMTPSA id b8sm1825954edv.96.2021.08.19.07.39.16 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 07:39:16 -0700 (PDT) From: muradm Date: Thu, 19 Aug 2021 17:38:59 +0300 Message-Id: <20210819143906.6705-3-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819143133.6398-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/freedesktop.scm (greetd): Add greetd 0.7.0 --- gnu/packages/freedesktop.scm | 120 +++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 693a79c738..ba5f6b0f99 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2020 Raghav Gururajan ;;; Copyright © 2021 Brendan Tildesley ;;; Copyright © 2021 pineapples +;;; Copyright © 2021 muradm ;;; ;;; This file is part of GNU Guix. ;;; @@ -46,6 +47,7 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix build-system cargo) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) @@ -62,6 +64,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) + #:use-module (gnu packages crates-io) #:use-module (gnu packages cryptsetup) #:use-module (gnu packages databases) #:use-module (gnu packages disk) @@ -862,6 +865,123 @@ that require it. It also provides a universal seat management library that allows applications to use whatever seat management is available.") (license license:expat))) +(define-public greetd + (package + (name "greetd") + (version "0.7.0") + (home-page "https://git.sr.ht/~kennylevinsen/greetd") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0lmwr5ld9x2wlq00i7mjgm9by8zndiq9girj8g93k0kww9zbgr3g")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-nix" ,rust-nix-0.17) + ("rust-pam-sys" ,rust-pam-sys-0.5.6) + ("rust-rpassword" ,rust-rpassword-4) + ("rust-users" ,rust-users-0.9) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-tokio" ,rust-tokio-0.2) + ("rust-getopts" ,rust-getopts-0.2) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-async-trait" ,rust-async-trait-0.1) + ("rust-enquote" ,rust-enquote-1)) + #:phases + (modify-phases %standard-phases + ;; issue with terminal activation solved by this feature: + ;; https://lists.sr.ht/~kennylevinsen/greetd-devel/patches/24441 + ;; greetd-next builds from head of #24441 + ;; below substitute is provided as workaround for tagged version + (add-after 'unpack 'patch-terminal-switch + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "greetd/src/server.rs" + (("switch: true,") + "switch: false,")))) + (delete 'package) + (add-after 'build 'build-man-pages + (lambda* (#:key inputs #:allow-other-keys) + (define (scdoc-cmd doc lvl) + (system (string-append "scdoc < " + doc "-" lvl ".scd > " + doc "." lvl))) + (with-directory-excursion "man" + (scdoc-cmd "greetd" "1") + (scdoc-cmd "greetd" "5") + (scdoc-cmd "greetd-ipc" "7") + (scdoc-cmd "agreety" "1")))) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (sbin (string-append out "/sbin")) + (share (string-append out "/share")) + (man (string-append share "/man")) + (man1 (string-append man "/man1")) + (man5 (string-append man "/man5")) + (man7 (string-append man "/man7")) + (release "target/release") + (greetd-bin (string-append release "/greetd")) + (agreety-bin (string-append release "/agreety"))) + (install-file greetd-bin sbin) + (install-file agreety-bin bin) + (with-directory-excursion "man" + (install-file "greetd.1" man1) + (install-file "greetd.5" man5) + (install-file "greetd-ipc.7" man7) + (install-file "agreety.1" man1)))))))) + (native-inputs + `(("linux-pam" ,linux-pam) + ("scdoc" ,scdoc))) + (synopsis "minimal and flexible login manager daemon") + (description + "greetd is a minimal and flexible login manager daemon +that makes no assumptions about what you want to launch. + +If you can run it from your shell in a TTY, greetd can start it. + +If it can be taught to speak a simple JSON-based IPC protocol, +then it can be a greeter.") + (license license:gpl3+))) + +(define-public greetd-next + (package + (inherit greetd) + (name "greetd") + (version "0.7.0-next") + (source (origin + (method git-fetch) + (uri (git-reference + (url (package-home-page greetd)) + (commit "87e92776543c224676d64316f4519b509c21a0d5"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "13dblvhx5vbsx0yqyz2sq1ayffqwadbkn90p52wd5b66ij1z6v1a")))) + (arguments + (substitute-keyword-arguments (package-arguments greetd) + ((#:cargo-inputs inputs) + `(("rust-nix" ,rust-nix-0.19) + ("rust-pam-sys" ,rust-pam-sys-0.5.6) + ("rust-rpassword" ,rust-rpassword-5) + ("rust-users" ,rust-users-0.11) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-tokio" ,rust-tokio-1) + ("rust-getopts" ,rust-getopts-0.2) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-async-trait" ,rust-async-trait-0.1) + ("rust-enquote" ,rust-enquote-1))) + ((#:phases phases) + `(modify-phases ,phases + (delete 'patch-terminal-switch))))))) + (define-public packagekit (package (name "packagekit") From patchwork Thu Aug 19 14:39:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32184 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BB1DD27BC78; Thu, 19 Aug 2021 15:41:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7626527BC6B for ; Thu, 19 Aug 2021 15:41:24 +0100 (BST) Received: from localhost ([::1]:52092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGjEP-00006T-TZ for patchwork@mira.cbaines.net; Thu, 19 Aug 2021 10:41:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGjD9-0006XN-7v for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49026) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGjD8-0005uN-VG for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGjD8-0000L1-SZ for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v4 04/10] gnu: admin: Add greetd-pam-mount Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Aug 2021 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49969 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.16293839731198 (code B ref 49969); Thu, 19 Aug 2021 14:40:02 +0000 Received: (at 49969) by debbugs.gnu.org; 19 Aug 2021 14:39:33 +0000 Received: from localhost ([127.0.0.1]:60557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCe-0000J3-Rl for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:33 -0400 Received: from mail-ed1-f52.google.com ([209.85.208.52]:44899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCW-0000Hj-Kz for 49969@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:25 -0400 Received: by mail-ed1-f52.google.com with SMTP id i22so9165654edq.11 for <49969@debbugs.gnu.org>; Thu, 19 Aug 2021 07:39:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=VB+zCSmnI6JPNNd+dmQ7nv1CAeu5yk6+FSBxIyafSxw=; b=Ji4gNa6Jgk5UhNagrenozsouZVTcn7ulbkhzFUddoHxuWV5ZkC2CWJL+TXofgza0+6 c562D3C42WAqBwrG0T4SkOiu6q9ynUWddOe/YuM8zXW36VPoHMNYu/mBiVNzM3t9YCCb +4OYnBdlgShGkrL7FmjvGKU0OBM0hy//UcFjA0CDF5omPMIm7ppiMDyDFTq6012vKvP2 CSPMR9HsPUZJrm/YhrLb9AQD2FrQzVrMt31/qmQMrJEkvhOvT5iu+/D5gBaYIFzhCYbG xT2QPA8ELrQUoCDdDngQj7KlF5KGJvceM8g55oiekXai6Ngh1o3b+kwK4zSbslg2LDRG SO7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VB+zCSmnI6JPNNd+dmQ7nv1CAeu5yk6+FSBxIyafSxw=; b=gQeJ5eTaeKYoARd/lOIY8P7Et7CShmOZAXY8trF+HbuiF3tnW1+gEqD7lvXcU3Xn2v grENmjGVDBLo4Lw9vF2EsxOyK56x2x7nSXZtjE052A+zTXt7przi7gZorDXeFbLwprB8 7Ltuwt8LiOG4p1NjDCPMzpfTYjX4THBYEe5eKnZ0vEgGK6lZ3sz621Vsp5SPkQOe0vFo +gcW5P5E9x7/NVBP3lauhvJP+NOVwP2PnTXYS3BkkUvDX7TwTgCYS2OUTryTORUaDPVa Qb8lmBtYsR/J+CL43hTBOs0UyZqr3pwGjByWKcqFdy5G1stUKllciVVZMXhw3UJOEy3H dz5g== X-Gm-Message-State: AOAM531fhGZiIVhtcxfhMoMY+uvqwVPHMv4KvC6bjk8W1HevHLn0jWdX Gbzqz19J9H75mtb9NDy6IsWlr1vUx/zyUA== X-Google-Smtp-Source: ABdhPJxeByyY+TQIK8h8zYM7zouCNLJ1s6pH4FUD8+XU+E5CEO0JTMSfvGnGZlK9GA0Yner4YzShVg== X-Received: by 2002:a05:6402:49a:: with SMTP id k26mr16636542edv.279.1629383958546; Thu, 19 Aug 2021 07:39:18 -0700 (PDT) Received: from localhost.localdomain ([188.58.13.35]) by smtp.gmail.com with ESMTPSA id b8sm1825954edv.96.2021.08.19.07.39.17 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 07:39:18 -0700 (PDT) From: muradm Date: Thu, 19 Aug 2021 17:39:00 +0300 Message-Id: <20210819143906.6705-4-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819143133.6398-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/admin.scm (greetd-pam-mount): Add greetd-pam-mount --- gnu/packages/admin.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 007f15f9f5..c9bfe0b667 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -42,6 +42,7 @@ ;;; Copyright © 2021 David Larsson ;;; Copyright © 2021 WinterHound ;;; Copyright © 2021 Brice Waegeneire +;;; Copyright © 2021 muradm ;;; ;;; This file is part of GNU Guix. ;;; @@ -4247,6 +4248,38 @@ supports. It can also mount encrypted LUKS volumes using the password supplied by the user when logging in.") (license (list license:gpl2+ license:lgpl2.1+)))) +(define-public greetd-pam-mount + (package + (inherit pam-mount) + (name "greetd-pam-mount") + (arguments + (substitute-keyword-arguments (package-arguments pam-mount) + ((#:configure-flags flags ''()) + `(cons* "--with-rundir=/run/greetd" ,flags)) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'unpack 'patch-config-file-name + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/pam_mount.c" + ((".*define CONFIGFILE .*$") + "#define CONFIGFILE \"/etc/security/greetd_pam_mount.conf.xml\"\n") + (("pam_mount_config") "greetd_pam_mount_config") + (("pam_mount_system_authtok") "greetd_pam_mount_system_authtok")))))))) + (synopsis "pam-mount specifically compiled for use with greetd") + (description + "Pam-mount is a PAM module that can mount volumes when a user logs in. +It supports mounting local filesystems of any kind the normal mount utility +supports. It can also mount encrypted LUKS volumes using the password +supplied by the user when logging in. + +This package inherits pam-mount in the way that it is compiled specifically +for use with greetd daemon. It uses different configuration location and +name space for storing data in PAM. + +greetd-pam-mount is used in configuration of greetd to provide +auto-(mounting/unmounting) of XDG_RUNTIME_DIR in the way that it will not +interfere with default pam-mount configuration."))) + (define-public jc (package (name "jc") From patchwork Thu Aug 19 14:39:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32188 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A7E3B27BC78; Thu, 19 Aug 2021 15:43:47 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2D4AB27BC6B for ; Thu, 19 Aug 2021 15:43:47 +0100 (BST) Received: from localhost ([::1]:60652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGjGk-0005qE-88 for patchwork@mira.cbaines.net; Thu, 19 Aug 2021 10:43:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGjD9-0006YY-MA for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49027) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGjD9-0005vG-BK for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGjD9-0000L8-9F for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v4 05/10] gnu: desktop: Add seatd-service-type Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Aug 2021 14:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49969 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.16293839731204 (code B ref 49969); Thu, 19 Aug 2021 14:40:03 +0000 Received: (at 49969) by debbugs.gnu.org; 19 Aug 2021 14:39:33 +0000 Received: from localhost ([127.0.0.1]:60559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCf-0000JH-Dc for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:33 -0400 Received: from mail-ej1-f43.google.com ([209.85.218.43]:44996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCY-0000Hl-02 for 49969@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:26 -0400 Received: by mail-ej1-f43.google.com with SMTP id bq25so13357648ejb.11 for <49969@debbugs.gnu.org>; Thu, 19 Aug 2021 07:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Sp33gQQBygwHj8x5D/cTuv92CAb24beXS7SlNnF62pw=; b=ssjtWBXema9F85APczYWbMKB+vqQJ27sCR97x7jNzzyJORr2fdY85OiNL0eGMOzW82 ucSCsaHWES20DXH+wmehtEM2XeOLr9jxzYkQaZHkgJRDPNUToeFPbAHwkjX9H+uIiebM JHFTvIE6pSu85BeUrXquS91SV70pKJedsWP3ZrQsw/dIMqjg0UIaieWqXwVAFMC4i1YR dZ5n0xL+E46o6I96h2+S0R7nXYggjSwyF/EDt6zjMnw6rbFm+aTD7FB2JcsKh+jQDdN8 uA9PqtnrmpvzlpO50kh9gvkhzl3kAXqDFtCZP/OQMibcRG08VeMtdLuIWgxQmwK/Znh3 6UVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Sp33gQQBygwHj8x5D/cTuv92CAb24beXS7SlNnF62pw=; b=uKcLm2qHLehNsCZbCqj9MZiZVe1CCqDoBtaIZg4mZS1F1DCA6zaEhqZ4OGtjoM8dsW 4zLwKSnni93JgxNF7sIJeqhhnEzmykhZapBlb0Mo0f5D0PqniM+8Kn96ZMK4K5Dbpiiu SNwhc4OoVgsBFyLoxxnjLG2CY1WuzFSMbYB9usQQrba+t5XgROpFKwgLlAL3YO7UGakZ w+z+mJXbE9EXrwJ1ec/Ubw15gPE9omD0PidugZz9qTcSnoaW0Al1lfqVLCNp+zZjCqQz 9uVk0y4/p0t9l/NP72Ry4ym608sH9uU8Bemhlwa0peSzwEkjIgixPTnClNcWcq7yCHQc IUhA== X-Gm-Message-State: AOAM530CCOAI+40h4IL9XkSQQtYhROOGQ99EePjBjkJFa5wtIT+6fd2+ u33yKnbX2k1KOQ+/vTOrXDUOvxpbEDzXyg== X-Google-Smtp-Source: ABdhPJw25GjxKMYASOKOXEfD2I14km14dLTe70AnVP+WphniW5/deLkpIAxyEc5zNE9qUCifzpbrHQ== X-Received: by 2002:a17:906:aac7:: with SMTP id kt7mr16111107ejb.4.1629383959885; Thu, 19 Aug 2021 07:39:19 -0700 (PDT) Received: from localhost.localdomain ([188.58.13.35]) by smtp.gmail.com with ESMTPSA id b8sm1825954edv.96.2021.08.19.07.39.18 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 07:39:19 -0700 (PDT) From: muradm Date: Thu, 19 Aug 2021 17:39:01 +0300 Message-Id: <20210819143906.6705-5-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819143133.6398-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/services/desktop.scm: Add seatd-service-type --- gnu/services/desktop.scm | 60 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 64d0e85301..c42db5987e 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2020 Tobias Geerinckx-Rice ;;; Copyright © 2020 Reza Alizadeh Majd ;;; Copyright © 2021 Brice Waegeneire +;;; Copyright © 2021 muradm ;;; ;;; This file is part of GNU Guix. ;;; @@ -39,7 +40,9 @@ #:use-module (gnu services networking) #:use-module (gnu services sound) #:use-module ((gnu system file-systems) - #:select (%elogind-file-systems file-system)) + #:select (%control-groups + %elogind-file-systems + file-system)) #:use-module (gnu system) #:use-module (gnu system setuid) #:use-module (gnu system shadow) @@ -154,6 +157,9 @@ gnome-keyring-configuration? gnome-keyring-service-type + seatd-configuration + seatd-service-type + %desktop-services)) ;;; Commentary: @@ -1182,6 +1188,58 @@ or setting its password with passwd."))) (define polkit-wheel-service (simple-service 'polkit-wheel polkit-service-type (list polkit-wheel))) + +;;; +;;; seatd-service-type -- minimal seat management daemon +;;; + +(define-record-type* seatd-configuration + make-seatd-configuration + seatd-configuration? + (seatd seatd-package (default seatd)) + (user seatd-user (default "root")) + (group seatd-group (default "users")) + (socket seatd-socket (default "/run/seatd.sock")) + (loglevel seatd-loglevel (default "error"))) + +(define (seatd-shepherd-service config) + (list (shepherd-service + (documentation "Minimal seat management daemon") + (requirement '()) + ;; TODO: once cgroups is separate dependency + ;; here we should depend on it rather than elogind + (provision '(seatd elogind)) + (start #~(make-forkexec-constructor + (list #$(file-append (seatd-package config) "/bin/seatd") + "-u" #$(seatd-user config) + "-g" #$(seatd-group config) + "-s" #$(seatd-socket config)) + #:environment-variables + (list (string-append "SEATD_LOGLEVEL=" + #$(seatd-loglevel config))) + #:log-file "/tmp/seatd.log")) + (stop #~(make-kill-destructor))))) + +(define seatd-environment + (match-lambda + (($ _ _ _ socket) + `(("SEATD_SOCK" . ,socket))))) + +(define seatd-service-type + (service-type + (name 'seatd) + (description "Seat management takes care of mediating access +to shared devices (graphics, input), without requiring the +applications needing access to be root.") + (extensions + (list + (service-extension session-environment-service-type seatd-environment) + ;; TODO: once cgroups is separate dependency we should not mount it here + ;; for now it is mounted here, because elogind mounts it + (service-extension file-system-service-type (const %control-groups)) + (service-extension shepherd-root-service-type seatd-shepherd-service))) + (default-value (seatd-configuration)))) + ;;; ;;; The default set of desktop services. From patchwork Thu Aug 19 14:39:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32181 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D646A27BC78; Thu, 19 Aug 2021 15:40:30 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4047727BC6B for ; Thu, 19 Aug 2021 15:40:30 +0100 (BST) Received: from localhost ([::1]:49464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGjDZ-0006fE-8I for patchwork@mira.cbaines.net; Thu, 19 Aug 2021 10:40:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGjDA-0006Zt-1c for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49028) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGjD9-0005vf-NX for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGjD9-0000LG-LL for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v4 06/10] gnu: desktop: Add greetd-service-type Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Aug 2021 14:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49969 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.16293839831221 (code B ref 49969); Thu, 19 Aug 2021 14:40:03 +0000 Received: (at 49969) by debbugs.gnu.org; 19 Aug 2021 14:39:43 +0000 Received: from localhost ([127.0.0.1]:60561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCo-0000Jb-SN for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:43 -0400 Received: from mail-ej1-f49.google.com ([209.85.218.49]:40662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCZ-0000Ho-5y for 49969@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:27 -0400 Received: by mail-ej1-f49.google.com with SMTP id lo4so13389596ejb.7 for <49969@debbugs.gnu.org>; Thu, 19 Aug 2021 07:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=pPvug1pEJs0Qy8My6Srzy5M97XV/OUX7ph60ZRxN+4A=; b=ZY7d0H43LOZNVfrpIrVlMyYpbaDshghJbgB6a9E5XA3R51o1luTGjtOJ9JIHzCRVcx fAZoEgoEL97Np5F1cW9v+sjyhouz7Ce8CCNVl03YtGvucUGVxOuTB8TnyHMGyMtLB3cU 72KeoAjsTVCNaLH/TWFcYJycXSScgiUhJZpIAwILtV8kuPqv4XmJc85qx3oNiG3XuP49 QOQfCstf0kbqk/zrtTmXrMUlRnb/g0SwelnpUNtDQFRoJSh+dnkURyLFv7ojxOmtQHbj DyOpow9I7q/q2lCxd4WJpd3GPU3hG3cgw1YmlmwlQaJdlIFjDAXq0W4MIegpElqfGQQ3 CxNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pPvug1pEJs0Qy8My6Srzy5M97XV/OUX7ph60ZRxN+4A=; b=ApZuL/xdczShyp0gVyhYdTvIY9e4Kz0aEHpqS3TL1DR8HLXxuQNfXFlC+I20lRG+VB 9Q8ttqv7apZjsdBGcFmcJ7kgZlYzACr+fWj/uWgQWbdbocq+aB5NR4jkgl7zuVG8OpaN KnOqgHOP3wCke9OOS1Uc3+qlF0zZBZG9I+sFQaxXpD5VsTNlcmQi14nslmgnDJE0mgcs bYIdGw/q3JiT+HaFVH53lywzOXOXeOqLlGQScIk2gr2RcpWVWf5fOgTnJhFnQxBEzWHj IW1nCtaPav9vWBNBKxJNx4ctsG96RRPjrUuQshnYvP2SQAV6PboSY9UEI5MZ14g3FsV2 FIDw== X-Gm-Message-State: AOAM533JfPFZEbvSlIgQ4pwwD3ghO5wQY4prNmFw0a9gbdF6TjNx7hBP hxr7+qf1Yzf8qILKAH7T438YqSzBKQ1U9w== X-Google-Smtp-Source: ABdhPJxYxmDAWFxH50LmrhbOAR5/7jAycYq6EbXozPVMg/drxTLq963MDy7Tt3iTpHOeAAkpZyFXIA== X-Received: by 2002:a17:906:270f:: with SMTP id z15mr16136068ejc.348.1629383961104; Thu, 19 Aug 2021 07:39:21 -0700 (PDT) Received: from localhost.localdomain ([188.58.13.35]) by smtp.gmail.com with ESMTPSA id b8sm1825954edv.96.2021.08.19.07.39.20 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 07:39:20 -0700 (PDT) From: muradm Date: Thu, 19 Aug 2021 17:39:02 +0300 Message-Id: <20210819143906.6705-6-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819143133.6398-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Currently, only agreety configuration is provided. * gnu/services/desktop.scm: Add greetd-service-type --- gnu/services/desktop.scm | 228 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 228 insertions(+) diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index c42db5987e..e37811cf94 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -49,6 +49,7 @@ #:use-module (gnu system pam) #:use-module (gnu packages glib) #:use-module (gnu packages admin) + #:use-module (gnu packages bash) #:use-module (gnu packages cups) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gnome) @@ -160,6 +161,12 @@ seatd-configuration seatd-service-type + greetd-configuration + greetd-terminal-configuration + greetd-service-type + greetd-agreety-tty-session + greetd-agreety-tty-xdg-session + %desktop-services)) ;;; Commentary: @@ -1240,6 +1247,227 @@ applications needing access to be root.") (service-extension shepherd-root-service-type seatd-shepherd-service))) (default-value (seatd-configuration)))) + +;;; +;;; greetd-service-type -- minimal and flexible login manager daemon +;;; + +(define-record-type* + greetd-agreety-session make-greetd-agreety-session + greetd-agreety-session? + (package greetd-agreety-command-package (default bash)) + (command-bin greetd-agreety-command-bin (default "/bin/bash")) + (command-args greetd-agreety-command-args (default '("-l"))) + (extra-env greetd-agreety-extra-env (default '())) + (command-generator greetd-agreety-command-generator)) + +(define greetd-agreety-tty-session-command + (match-lambda + (($ pkg command-bin command-args extra-env) + (program-file + "agreety-tty-session-command" + #~(begin + (use-modules (ice-9 match)) + (let* ((abs-cmd-bin #$(file-append pkg command-bin))) + (for-each + (match-lambda ((var . val) (setenv var val))) + (quote (#$@extra-env))) + (apply execl abs-cmd-bin abs-cmd-bin + (list #$@command-args)))))))) + +(define greetd-agreety-tty-xdg-session-command + (match-lambda + (($ package command-bin command-args extra-env) + (program-file + "agreety-tty-xdg-session-command" + #~(begin + (use-modules (ice-9 match)) + (let* + ((username (getenv "USER")) + (useruid (passwd:uid (getpwuid username))) + (useruid (number->string useruid)) + (abs-cmd-bin #$(file-append package command-bin))) + (setenv "XDG_SESSION_TYPE" "tty") + (setenv "XDG_RUNTIME_DIR" (string-append "/run/user/" useruid)) + (for-each + (match-lambda ((var . val) (setenv var val))) + (quote (#$@extra-env))) + (apply execl abs-cmd-bin abs-cmd-bin + (list #$@command-args)))))))) + +(define greetd-agreety-tty-session + (greetd-agreety-session + (command-generator greetd-agreety-tty-session-command))) + +(define greetd-agreety-tty-xdg-session + (greetd-agreety-session + (command-generator greetd-agreety-tty-xdg-session-command))) + +(define-record-type* + greetd-terminal-configuration make-greetd-terminal-configuration + greetd-terminal-configuration? + (greetd greetd-package (default greetd)) + (config-file-name greetd-config-file-name (thunked) + (default (default-config-file-name this-record))) + (terminal-vt greetd-terminal-vt (default "7")) + (terminal-switch greetd-terminal-switch (default #f)) + (default-session-user greetd-default-session-user (default "greeter")) + (default-session-command greetd-default-session-command + (default greetd-agreety-tty-xdg-session))) + +(define (default-config-file-name config) + (string-join (list "config-" (greetd-terminal-vt config) ".toml") "")) + +(define make-greetd-terminal-default-session-command + (match-lambda + (($ greetd _ _ _ _ default-session-command) + (cond ((greetd-agreety-session? default-session-command) + (let* + ((generator (greetd-agreety-command-generator + default-session-command)) + (command (apply generator (list default-session-command))) + (agreety-bin (file-append greetd "/bin/agreety"))) + (program-file + "agreety-command" + #~(execl #$agreety-bin #$agreety-bin "-c" #$command)))) + (else (program-file "agreety-command-exit" #~(exit #f))))))) + +(define (make-greetd-terminal-configuration-file config) + (let* + ((config-file-name (greetd-config-file-name config)) + (terminal-vt (greetd-terminal-vt config)) + (terminal-switch (greetd-terminal-switch config)) + (default-session-user (greetd-default-session-user config)) + (default-session-command (make-greetd-terminal-default-session-command config))) + (mixed-text-file + config-file-name + "[terminal]\n" + "vt = " terminal-vt "\n" + "switch = " (if terminal-switch "true" "false") "\n" + "[default_session]\n" + "user = " default-session-user "\n" + "command = " default-session-command "\n"))) + +(define %default-motd + (plain-file "motd" "This is the GNU operating system, welcome!\n\n")) + +(define %greetd-accounts + (list (user-account + (name "greeter") + (group "wheel") + (supplementary-groups '("users" "tty" "input" "video" "audio")) + (system? #t)))) + +(define %greetd-file-systems + (list (file-system + (device "none") + (mount-point "/run/greetd/pam_mount") + (type "tmpfs") + (check? #f) + (flags '(no-suid no-dev no-exec)) + (options "mode=0755") + (create-mount-point? #t)))) + +(define %greetd-pam-mount-rules + `((debug (@ (enable "0"))) + (volume (@ (sgrp "users") + (fstype "tmpfs") + (mountpoint "/run/user/%(USERUID)") + (options "noexec,nosuid,nodev,size=1g,mode=0700,uid=%(USERUID),gid=%(USERGID)"))) + (logout (@ (wait "0") + (hup "0") + (term "yes") + (kill "no"))) + (mkmountpoint (@ (enable "1") (remove "true"))))) + +(define-record-type* + greetd-configuration make-greetd-configuration + greetd-configuration? + (motd greetd-motd (default %default-motd)) + (allow-empty-passwords? greetd-allow-empty-passwords? (default #t)) + (terminals greetd-terminals (default '()))) + +(define (make-greetd-pam-mount-conf-file config) + (computed-file + "greetd_pam_mount.conf.xml" + #~(begin + (use-modules (sxml simple)) + (call-with-output-file #$output + (lambda (port) + (sxml->xml + '(*TOP* + (*PI* xml "version='1.0' encoding='utf-8'") + (pam_mount + #$@%greetd-pam-mount-rules + (pmvarrun + #$(file-append greetd-pam-mount + "/sbin/pmvarrun -u '%(USER)' -o '%(OPERATION)'")))) + port)))))) + +(define (greetd-etc-service config) + `(("security/greetd_pam_mount.conf.xml" + ,(make-greetd-pam-mount-conf-file config)))) + +(define (greetd-pam-service config) + (define optional-pam-mount + (pam-entry + (control "optional") + (module #~(string-append #$greetd-pam-mount "/lib/security/pam_mount.so")))) + + (list + (unix-pam-service "greetd" + #:login-uid? #t + #:allow-empty-passwords? + (greetd-allow-empty-passwords? config) + #:motd + (greetd-motd config)) + (lambda (pam) + (if (member (pam-service-name pam) + '("login" "greetd" "su" "slim" "gdm-password")) + (pam-service + (inherit pam) + (auth (append (pam-service-auth pam) + (list optional-pam-mount))) + (session (append (pam-service-session pam) + (list optional-pam-mount)))) + pam)))) + +(define (greetd-shepherd-services config) + (map + (lambda (tc) + (let* + ((greetd-bin (file-append (greetd-package tc) "/sbin/greetd")) + (greetd-conf (make-greetd-terminal-configuration-file tc)) + (greetd-vt (greetd-terminal-vt tc))) + (shepherd-service + (documentation "Minimal and flexible login manager daemon") + (requirement '(user-processes host-name udev virtual-terminal)) + (provision (list (symbol-append + 'term-tty + (string->symbol (greetd-terminal-vt tc))))) + (start #~(make-forkexec-constructor + (list #$greetd-bin "-c" #$greetd-conf) + #:log-file + (string-append "/tmp/greetd." #$greetd-vt ".log"))) + (stop #~(make-kill-destructor))))) + (greetd-terminals config))) + +(define greetd-service-type + (service-type + (name 'greetd) + (description "Provides necessary infrastructure for logging into the +system including @code{greetd} PAM service, @code{pam-mount} module to +mount/unmount /run/user/ directory for user and @code{greetd} +login manager daemon.") + (extensions + (list + (service-extension account-service-type (const %greetd-accounts)) + (service-extension file-system-service-type (const %greetd-file-systems)) + (service-extension etc-service-type greetd-etc-service) + (service-extension pam-root-service-type greetd-pam-service) + (service-extension shepherd-root-service-type greetd-shepherd-services))) + (default-value (greetd-configuration)))) + ;;; ;;; The default set of desktop services. From patchwork Thu Aug 19 14:39:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32185 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9265E27BC78; Thu, 19 Aug 2021 15:41:41 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4F7A427BC6B for ; Thu, 19 Aug 2021 15:41:41 +0100 (BST) Received: from localhost ([::1]:52958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGjEi-0000jh-CQ for patchwork@mira.cbaines.net; Thu, 19 Aug 2021 10:41:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGjDA-0006b8-Dd for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGjDA-0005vw-4S for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGjDA-0000LN-1i for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v4 07/10] gnu: base: Add greetd to applied PAM services Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Aug 2021 14:40:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49969 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.16293839831228 (code B ref 49969); Thu, 19 Aug 2021 14:40:04 +0000 Received: (at 49969) by debbugs.gnu.org; 19 Aug 2021 14:39:43 +0000 Received: from localhost ([127.0.0.1]:60563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCp-0000Je-CF for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:43 -0400 Received: from mail-ej1-f51.google.com ([209.85.218.51]:35713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCa-0000I3-Fr for 49969@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:29 -0400 Received: by mail-ej1-f51.google.com with SMTP id w5so13454389ejq.2 for <49969@debbugs.gnu.org>; Thu, 19 Aug 2021 07:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=dh/8N+CXmlWZw91Zsb/y/jh8BpZ7QLm1nQKa/aRV3eI=; b=sueM4XhRz/6QRZM/0ZA6O743wuDIl5A6hYmf5CxlD3Sd0945lOJLnOYsyYsoI5H6kQ DPSJVz5WDx3DVMMw/W+Oc+rcoU9EWANLRF8MpZtoYjm2mxO6NmE68/6ybNV/HLGppQ8e v3hNIdrRSbUWdWwRoi/ubus1mRWJdfG9SaS95CQMe93rMFKs6vsCHndoPvlqBMFryIZZ UX7JMb/I+iAP1qubHsDKEfDnis6qXORzWrCuNiRCl5kiZ8ZW75dI06Dg4Bw8ru6Aeb0k 5iLMB+38nnuuBCULoydsD4aMsKxRZI6M0XaoWZDsUIxufL2tH4r634llM3Cs7wkA+ds5 Kyhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dh/8N+CXmlWZw91Zsb/y/jh8BpZ7QLm1nQKa/aRV3eI=; b=JdxjZaqQB2ygvYqmF937DbP4mVVRS2XsHhxypl3aqUIyUzGkOgbQ+IS0hPtNnd6l/m sm+BRX8IiGEk7ZdcwV/wlzWSBL6ZdqJEpq5715YQbwjrM0H75M66qzFOr1jSxZA3128E BH0iyWAqLtffvsdoYLgW++3bkL4yfSWNmr776a7H21GohWqXiqboO7dsdUk7aOxb0o9h jChIcJTl3dmd46YFflLpLIYOzkW1EDIfZDKrzJXzorQ8X92X2gIfDyvxw0UdE7JZHV4G pmSa4SrV/R+DOKBI8ogUcRxefrjD7DMmvOz5Sz+iS1R6ojzWREwF/DsCUMsL725cY/rU YSpw== X-Gm-Message-State: AOAM532wXMudNTjMxpti/q29nbLRt3eXvf9hGrnnempuwLffQq+nmFnH KCcBjZu02B68NiuQkBjd2axrzb52wBOPyQ== X-Google-Smtp-Source: ABdhPJzPkUEmtX5bNYMSkxYKkX5X0A1IVv0Tw9M2kxSF+AImsI8iQqM96r03zSgfNaan0iWPI/vk5g== X-Received: by 2002:a17:906:c316:: with SMTP id s22mr16318752ejz.39.1629383962587; Thu, 19 Aug 2021 07:39:22 -0700 (PDT) Received: from localhost.localdomain ([188.58.13.35]) by smtp.gmail.com with ESMTPSA id b8sm1825954edv.96.2021.08.19.07.39.21 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 07:39:22 -0700 (PDT) From: muradm Date: Thu, 19 Aug 2021 17:39:03 +0300 Message-Id: <20210819143906.6705-7-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819143133.6398-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/services/base.scm (pam-limits-service-type): add greetd PAM service to applicable PAM services --- gnu/services/base.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index c784d312b1..446ecc30f8 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -15,6 +15,7 @@ ;;; Copyright © 2020, 2021 Brice Waegeneire ;;; Copyright © 2021 qblade ;;; Copyright © 2021 Hui Lu +;;; Copyright © 2021 muradm ;;; ;;; This file is part of GNU Guix. ;;; @@ -1392,7 +1393,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" "sddm")) + '("login" "greetd" "su" "slim" "gdm-password" "sddm")) (pam-service (inherit pam) (session (cons pam-limits From patchwork Thu Aug 19 14:39:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32182 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 741AC27BC78; Thu, 19 Aug 2021 15:40:40 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3AC9A27BC6B for ; Thu, 19 Aug 2021 15:40:40 +0100 (BST) Received: from localhost ([::1]:50376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGjDj-0007KE-7E for patchwork@mira.cbaines.net; Thu, 19 Aug 2021 10:40:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGjDA-0006ch-Rw for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGjDA-0005w7-I7 for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGjDA-0000LV-F0 for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v4 08/10] gnu: pam-mount: Add greetd to applied PAM services Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Aug 2021 14:40:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49969 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.16293839841235 (code B ref 49969); Thu, 19 Aug 2021 14:40:04 +0000 Received: (at 49969) by debbugs.gnu.org; 19 Aug 2021 14:39:44 +0000 Received: from localhost ([127.0.0.1]:60565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCp-0000Jl-MA for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:43 -0400 Received: from mail-ej1-f45.google.com ([209.85.218.45]:45011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCb-0000IA-Kz for 49969@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:29 -0400 Received: by mail-ej1-f45.google.com with SMTP id bq25so13357976ejb.11 for <49969@debbugs.gnu.org>; Thu, 19 Aug 2021 07:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=6iBM8ZI3T3fHzn8rEzUJ2i4QvCgwKO7iPLoH5R+yrGg=; b=t0FVaEjulDRFDVt+qOpEhPPKBixcIHG/caTSNOrhTuIMZct4wdqNZKZBrkG6fnXyoW QFusVm7/GDDCls1d3lZ4ko8Z1zqyuJEkejIXPIret8moX0cgE7T8/tyVsux13l1mG/9c i2dUS5lSWhWz0Ks93v3Hf22eBgw6LS5NnuIb7g3QRLLZ65O2HNbbQA7B5xGLVN5e4icn 9vZZJg9CrkgH8A7jkV9T/Fyd/FkRc+xc0pPid7Ww5nmB3zFhwUnQ9kx0rc7GPstyoD7O O91LbZCwmnzt5vnwpXZU+8E3g5YPyiJ3piFALD8axqy11Q7q8SpsK0SnzKAJjAxO5E2t htHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6iBM8ZI3T3fHzn8rEzUJ2i4QvCgwKO7iPLoH5R+yrGg=; b=CPNz2z3MuCQ+EsBb7SJoLR9OcsSU2dGYWNjOMGOlZHYXCmUt2qT0wz5At830LcR7DI MiB+NGSyhwokbRhiUds3UXsDoB6W3VWOmDx0l39bUw7zIixD8RvceCWB13ZdQFJcoKYO cI8+LOJyBy5PTKjBW5N67bZ99DFrtMq2dB4jzZTBKAG7VRt2pPsWA9E8akUDHnIVrI8g Ub49pnsVlpuNSiHGsbBmJFVgc6onJ9LDlvhLqzUuYfUvu3HDOf527h10Hp9cgsPg0kYi c+2sRCmfVbjD1OxHDX4dOrHoPh3zxF9U7s6fHYECU+TrTobbo3q7ltsNlZGIzQwUJdvj GPlA== X-Gm-Message-State: AOAM530rd2Gafm2hsR+pCa3DVxizpju6x/hSsush2eL1fr+w8emyHfJB Mn19A26Mup//gl3yZplPa9Ec+joru9KYxQ== X-Google-Smtp-Source: ABdhPJwkcpT/OEDJZBiseDo5CgHVIlrbcn+2Jl1DjA44tRNa3BnppiQ24KcrXj4Xl0fOL1BYM4pUig== X-Received: by 2002:a17:906:aada:: with SMTP id kt26mr16255540ejb.199.1629383963738; Thu, 19 Aug 2021 07:39:23 -0700 (PDT) Received: from localhost.localdomain ([188.58.13.35]) by smtp.gmail.com with ESMTPSA id b8sm1825954edv.96.2021.08.19.07.39.22 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 07:39:23 -0700 (PDT) From: muradm Date: Thu, 19 Aug 2021 17:39:04 +0300 Message-Id: <20210819143906.6705-8-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819143133.6398-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/services/pam-mount.scm (pam-mount-service-type): add greetd PAM service to applicable PAM services --- gnu/services/pam-mount.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/services/pam-mount.scm b/gnu/services/pam-mount.scm index 98611462c2..7b25efeb50 100644 --- a/gnu/services/pam-mount.scm +++ b/gnu/services/pam-mount.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2019 Guillaume Le Vaillant +;;; Copyright © 2021 muradm ;;; ;;; This file is part of GNU Guix. ;;; @@ -90,7 +91,7 @@ (module #~(string-append #$pam-mount "/lib/security/pam_mount.so")))) (list (lambda (pam) (if (member (pam-service-name pam) - '("login" "su" "slim" "gdm-password")) + '("login" "greetd" "su" "slim" "gdm-password")) (pam-service (inherit pam) (auth (append (pam-service-auth pam) From patchwork Thu Aug 19 14:39:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32189 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id EDFD727BC78; Thu, 19 Aug 2021 15:43:55 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6099927BC6B for ; Thu, 19 Aug 2021 15:43:55 +0100 (BST) Received: from localhost ([::1]:33114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGjGs-0006Ho-GS for patchwork@mira.cbaines.net; Thu, 19 Aug 2021 10:43:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGjDB-0006eP-8b for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49031) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGjDA-0005wH-UO for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGjDA-0000Lc-Ri for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v4 09/10] gnu: tests: Add seatd/greetd based minimal desktop system tests Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Aug 2021 14:40:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49969 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.16293839841243 (code B ref 49969); Thu, 19 Aug 2021 14:40:04 +0000 Received: (at 49969) by debbugs.gnu.org; 19 Aug 2021 14:39:44 +0000 Received: from localhost ([127.0.0.1]:60567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCp-0000Js-WB for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:44 -0400 Received: from mail-ed1-f54.google.com ([209.85.208.54]:40491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCd-0000IM-8I for 49969@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:32 -0400 Received: by mail-ed1-f54.google.com with SMTP id d6so9222044edt.7 for <49969@debbugs.gnu.org>; Thu, 19 Aug 2021 07:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Zwh3CsWrgNCycdU0+Zpth9Ex7PFXkjrmiNwAyclSYpk=; b=E43en6JOuBJrU+pXm59RubvWtwEp4jNo1fRBh0DPaPX4yl68O+G2qPmHyVwf5IenG+ A8OYRxY+V/zKy3uTPZ/mXHCqzSz1FFCOpnnXk+bVSWxLfQ5PMDjk3rN9TVlgtW0Mu7AX jE+8+q1rYmkylaVVXkbmvDm6DEkn8ftwKn7jj3Bz4BtNs1YMy5piLa37KKhNd+QLcPsl IhbYUr0qxkoJZJVra1YRwGfhwhhOhYXFh9+pWzp3GxSUe0qD34QT5mEWL/Tist0gQbXD oQ2pCqYYrrR0xzy33o1+XjP/5NeAWCzyUB0/g766IaRWm3K8GDjbQdm/HO+S8CJS/08T LV2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Zwh3CsWrgNCycdU0+Zpth9Ex7PFXkjrmiNwAyclSYpk=; b=PnKmDe8vlU/R/HP9YbgXVKYUS4+gcsN/mvsCTz6iXwsNbqhc3xoFx9l66MfG1lJa5d ZTnAVbG//N0+rH7PawalW5NjnSeipuH9rSd2qLzPDSEVVQBDOv9Ct41OlYC5qWvxhOMm 0zPOhhjaw0gHFOPj2ZQAN79PLSmBJe0O9Lg0igOXq8FxSukCGl1rfKxaUnWyRnwVvmyH VkYzsAbDKmYSZY/eBYlYlKFybO8oyjtnyWZhsz1EFC2cJQgmFzshsLHIX59qgyIFYqTb 5LnwjCj8WJfAt0WJqmpJgsNj6VHWo/rV1bEHPKZI3PxGHXDZL9Z3etwu9NxAwX05066Q W78g== X-Gm-Message-State: AOAM531fEwuGK802l2g7q4rhI0CbO0pcBVHgbqX81q3Q0izi7xSEfIZz f50AXpDfpTB4csCx6apDTQAyTD7mRQsnCA== X-Google-Smtp-Source: ABdhPJx8u252PXyeF1Pb7GBSRljSoOHU+Uuzcocb6CwSOoJolRM08Za6uE7WMMx/jhmAKmvMzQzpDQ== X-Received: by 2002:aa7:c952:: with SMTP id h18mr16999640edt.18.1629383965145; Thu, 19 Aug 2021 07:39:25 -0700 (PDT) Received: from localhost.localdomain ([188.58.13.35]) by smtp.gmail.com with ESMTPSA id b8sm1825954edv.96.2021.08.19.07.39.24 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 07:39:24 -0700 (PDT) From: muradm Date: Thu, 19 Aug 2021 17:39:05 +0300 Message-Id: <20210819143906.6705-9-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819143133.6398-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/tests/desktop.scm (minimal-desktop): seatd/greetd based minimal desktop --- gnu/tests/desktop.scm | 191 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 190 insertions(+), 1 deletion(-) diff --git a/gnu/tests/desktop.scm b/gnu/tests/desktop.scm index 6aa22fd49b..2517eb7b30 100644 --- a/gnu/tests/desktop.scm +++ b/gnu/tests/desktop.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017 Ludovic Courtès +;;; Copyright © 2021 muradm ;;; ;;; This file is part of GNU Guix. ;;; @@ -19,12 +20,15 @@ (define-module (gnu tests desktop) #:use-module (gnu tests) #:use-module (gnu services) + #:use-module (gnu services base) #:use-module (gnu services dbus) #:use-module (gnu services desktop) + #:use-module (gnu system) #:use-module (gnu system vm) #:use-module (guix gexp) #:use-module (srfi srfi-1) - #:export (%test-elogind)) + #:export (%test-elogind + %test-minimal-desktop)) ;;; @@ -103,3 +107,188 @@ #:imported-modules '((gnu services herd) (guix combinators))))) (run-elogind-test (virtual-machine os)))))) + + +;;; +;;; Seatd/greetd based minimal desktop +;;; + +(define %minimal-services + (append + (list + (service seatd-service-type) + (service greetd-service-type + (greetd-configuration + (terminals + (list + (greetd-terminal-configuration (terminal-vt "1") (terminal-switch #t)) + (greetd-terminal-configuration (terminal-vt "2")) + (greetd-terminal-configuration (terminal-vt "3")) + (greetd-terminal-configuration (terminal-vt "4")) + (greetd-terminal-configuration (terminal-vt "5")) + (greetd-terminal-configuration (terminal-vt "6"))))))) + (modify-services %base-services + (delete login-service-type) + (delete mingetty-service-type)))) + +(define-syntax-rule (minimal-operating-system user-services ...) + "Return an operating system that includes USER-SERVICES in addition to +minimal %BASE-SERVICES." + (operating-system (inherit %simple-os) + (services (cons* user-services ... %minimal-services)))) + +(define (run-minimal-desktop-test os vm) + (define test + (with-imported-modules '((gnu build marionette) + (guix build syscalls)) + #~(begin + (use-modules (gnu build marionette) + (guix build syscalls) + (srfi srfi-1) + (srfi srfi-64) + (ice-9 pretty-print)) + + (define marionette + (make-marionette #$vm)) + + (define (file-get-all-strings fname) + (marionette-eval '(use-modules (rnrs io ports)) marionette) + (wait-for-file fname marionette #:read 'get-string-all)) + + (define (wait-for-unix-socket-m socket) + (wait-for-unix-socket socket marionette)) + + (mkdir #$output) + (chdir #$output) + + (test-begin "minimal-desktop") + + (test-assert "seatd is ready" + (wait-for-unix-socket-m "/run/seatd.sock")) + + (test-equal "login user on tty1" + "alice\n" + (begin + ;; Wait for tty1. + (marionette-eval + '(begin + (use-modules (gnu services herd)) + (start-service 'term-tty1)) + marionette) + (marionette-control "sendkey ctrl-alt-f1" marionette) + + ;; login as root change alice password and exit + ;; then login as alice + (for-each + (lambda (cmd) (marionette-type cmd marionette) (sleep 1)) + (list + "root\n" + "\n" + "passwd alice\n" + "alice\n" + "alice\n" + "exit\n" + "alice\n" + "alice\n" + "id -un > logged-in\n")) + + (file-get-all-strings "/home/alice/logged-in"))) + + (test-equal "validate user environment" + '("SEATD_SOCK=/run/seatd.sock" + "XDG_RUNTIME_DIR=/run/user/1000" + "XDG_SEAT=seat0" + "XDG_VTNR=1") + + (begin + (marionette-type "env > env\n" marionette) + (sleep 1) + + (define user-env (string-tokenize + (file-get-all-strings "/home/alice/env"))) + + (define (expected-var var) + (any (lambda (s) (string-contains var s)) + '("SEATD_SOCK" + "XDG_RUNTIME_DIR" + "XDG_SEAT" + "XDG_VTNR"))) + + (sort (filter expected-var user-env) string env\n" marionette) + (sleep 1) + + (define (sock-var? var) + (any (lambda (s) (string-contains var s)) + '("SEATD_SOCK" "GREETD_SOCK"))) + + (define (sock-var-sock var) + (car (cdr (string-split var #\=)))) + + (let* + ((out (file-get-all-strings "/home/alice/env")) + (out (string-tokenize out)) + (out (filter sock-var? out)) + (socks (map sock-var-sock out)) + (socks (map wait-for-unix-socket-m socks))) + (and (= 2 (length socks)) (every identity socks))))) + + (test-assert "greetd is ready" + (begin + (marionette-type "ps -C greetd -o pid,args --no-headers > ps-greetd\n" + marionette) + (sleep 1) + + (define (greetd-daemon? cmd) + (string-contains cmd "config")) + + (define (greetd-cmd-to-pid cmd) + (car (string-split cmd #\space))) + + (define (greetd-pid-to-sock pid) + (string-append "/run/greetd-" pid ".sock")) + + (let* ((out (file-get-all-strings "/home/alice/ps-greetd")) + (out (string-split out #\newline)) + (out (map string-trim-both out)) + (out (filter greetd-daemon? out)) + (pids (map greetd-cmd-to-pid out)) + (socks (map greetd-pid-to-sock pids)) + (socks (map wait-for-unix-socket-m socks))) + (every identity socks)))) + + ;; a bit weak, but tests everything at once actually + (test-equal "check /run/user/ mounted and writable" + "alice\n" + (begin + (marionette-type "echo alice > /run/user/1000/test\n" marionette) + (file-get-all-strings "/run/user/1000/test"))) + + (test-assert "screendump" + (begin + (marionette-control (string-append "screendump " #$output + "/tty1.ppm") + marionette) + (file-exists? "tty1.ppm"))) + + (test-end) + (exit (= (test-runner-fail-count (test-runner-current)) 0))))) + + (gexp->derivation "minimal-desktop" test)) + +(define %test-minimal-desktop + (system-test + (name "minimal-desktop") + (description + "Test whether we can log in when seatd and greetd is enabled") + (value + (let* ((os (marionette-operating-system + (minimal-operating-system) + #:imported-modules '((gnu services herd) + (guix combinators)))) + (vm (virtual-machine os))) + (run-minimal-desktop-test (virtualized-operating-system os '()) + #~(list #$vm)))))) From patchwork Thu Aug 19 14:39:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32190 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C3B6427BC78; Thu, 19 Aug 2021 15:44:02 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 34BDB27BC6B for ; Thu, 19 Aug 2021 15:44:02 +0100 (BST) Received: from localhost ([::1]:33578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGjGz-0006bC-A0 for patchwork@mira.cbaines.net; Thu, 19 Aug 2021 10:44:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGjDB-0006gA-O5 for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49032) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGjDB-0005wg-BB for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGjDB-0000Lj-97 for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v4 10/10] doc: Add desktop seatd-service-type and greetd-service-type Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Aug 2021 14:40:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49969 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.16293839851249 (code B ref 49969); Thu, 19 Aug 2021 14:40:05 +0000 Received: (at 49969) by debbugs.gnu.org; 19 Aug 2021 14:39:45 +0000 Received: from localhost ([127.0.0.1]:60569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCq-0000K0-FS for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:44 -0400 Received: from mail-ej1-f47.google.com ([209.85.218.47]:37821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCe-0000IT-F0 for 49969@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:33 -0400 Received: by mail-ej1-f47.google.com with SMTP id h9so13443096ejs.4 for <49969@debbugs.gnu.org>; Thu, 19 Aug 2021 07:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=X5B9Qd55nSCKA6XjB1MsLqDY4wPCKD2qims4BRcZ9xg=; b=ftevKKrfcyNnDSYcxwl1dQm7NNIfXS1Su4jy2OQmvayN0yayhgVXQq8l6+o8M+XM6E 3m/1PwhVV1C5gon70iap+Ln6bAYOtf/oci49Ejyzz31QGqYHmt+jLb54Zzrgn/C58iIu wCCA9Sfy/4X2LKatWSAnKNNJEJ5bMIl1U9V0O2VJrcX2sSIQsGwj/XF/s0QZPGwdvo32 DfzYrBAptar8EhH5TPcWc69EMRUmdkbFeObf6eIfzjH8gUFlaunne3Xgwag/KsHyUQyB 1hwJLsfl7+vr4M7fT56MsL8UiUCfzyFA7Gk3sjX/VRjYGnR3eOI3Aay8CZQJ7rW+PCMM ETBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=X5B9Qd55nSCKA6XjB1MsLqDY4wPCKD2qims4BRcZ9xg=; b=W3kNcFf//JlUcKSich+Ye4+VH+wNwy1JIpJz5jyA197zadS0UepR5DoeFydoBDvhjB LA4E6ffYao7+ohq8GUAwBxjo9Grio7s3bkfc535q2m0kmANeHaKEX1IWfb0JdZEQ+4dZ vQIe2ApTfO/eI/z5YMhZIe8izwZZTOUYdRQx228cEmkMBvQrCnCArVQAe0gj0apuC/4t b48e9oUK0R8Ecn40G/XgYvNWvZ3WwJ4NSGTUWvOt1GEWnX0LIj67+zSFwrz9EDSx6pgN m3DwkhgR9U8ndcjskWlLob0huKg2tDg4yXVHIcvPiK9MkCI7E+/ZqmIgn9VHA4Cc4nOI aIHw== X-Gm-Message-State: AOAM530Gysw1y6JkuUpGoxxOUD7wPl3Ygyq8bkcDJKRjKNFpazS/vA4C wmhKD6xOqae+oK8fzFpmww8VRHwqr1Asdw== X-Google-Smtp-Source: ABdhPJxD737JbMFM1gmeAH3AThJt3a+T+MR+Kdje1Xm+xqq+ceQxZHhvpmzssWpK5oRx87fdfbly+A== X-Received: by 2002:a17:907:1c8d:: with SMTP id nb13mr16329365ejc.155.1629383966460; Thu, 19 Aug 2021 07:39:26 -0700 (PDT) Received: from localhost.localdomain ([188.58.13.35]) by smtp.gmail.com with ESMTPSA id b8sm1825954edv.96.2021.08.19.07.39.25 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 07:39:26 -0700 (PDT) From: muradm Date: Thu, 19 Aug 2021 17:39:06 +0300 Message-Id: <20210819143906.6705-10-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819143133.6398-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * doc/guix.texi (Desktop Services): Provide documentation for seatd-service-type and greetd-service-type including configuration and sample usage. --- doc/guix.texi | 187 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 187 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 17ecc3ad0f..01a895fe62 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -94,6 +94,7 @@ Copyright @copyright{} 2021 Xinglu Chen@* Copyright @copyright{} 2021 Raghav Gururajan@* Copyright @copyright{} 2021 Domagoj Stolfa@* Copyright @copyright{} 2021 Hui Lu@* +Copyright @copyright{} 2021 muradm@* Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or @@ -19702,6 +19703,192 @@ and ``passwd'' is with the value @code{passwd}. @end table @end deftp +@defvr {Scheme Variable} seatd-service-type +A minimal seat management daemon, and a universal seat management library. + +Seat management takes care of mediating access to shared devices (graphics, +input), without requiring the applications needing access to be root. + +In general should be used as replacement to @code{elogind-service-type}. + +@lisp +(append + (list + ;; make sure seatd is running + (service seatd-service-type) + + (service greetd-service-type + (greetd-configuration + (terminals + (list + ;; lets have terminals 1, 2 and 3 run default XDG terminal session + ;; also ask terminal 1 to become active + (greetd-terminal-configuration (terminal-vt "1") (terminal-switch #t)) + (greetd-terminal-configuration (terminal-vt "2")) + (greetd-terminal-configuration (terminal-vt "3")) + ;; and terminals 4, 5 and 6 plain bash terminal session + ;; although not so plain, just to illustrate flexibility + (greetd-terminal-configuration + (terminal-vt "4") + (default-session-command greetd-agreety-tty-session)) + (greetd-terminal-configuration + (terminal-vt "5") + (default-session-command greetd-agreety-tty-session)) + (greetd-terminal-configuration + (terminal-vt "6") + (default-session-command greetd-agreety-tty-session)))))) + + ;; normaly one would want %base-services + (modify-services %base-services + ;; seatd/greetd combination can replace these + ;; greetd provides its own PAM service + (delete login-service-type) + (delete mingetty-service-type))) + +@end lisp + +@end defvr + +@deftp {Data Type} seatd-configuration +Configuration record for the seatd daemon service. + +@table @asis +@item @code{seatd} (default: @code{seatd}) +The seatd package to use. + +@item @code{user} (default: @samp{"root"}) +User to own the seatd socket. + +@item @code{group} (default: @samp{"users"}) +Group to own the seatd socket. + +@item @code{socket} (default: @samp{"/run/seatd.sock"}) +Where to create the seatd socket. + +@item @code{loglevel} (default: @samp{"error"}) +Log level to output logs. Possible values: @samp{"silent"}, @samp{"error"}, +@samp{"info"} and @samp{"debug"}. + +@end table +@end deftp + +@defvr {Scheme Variable} greetd-service-type +greetd is a minimal and flexible login manager daemon that makes no +assumptions about what you want to launch. + +If you can run it from your shell in a TTY, greetd can start it. If it +can be taught to speak a simple JSON-based IPC protocol, then it can +be a greeter. + +@code{} provides necessary infrastructure for +logging in users, including: + +@itemize @bullet +@item +@code{greetd} PAM service + +@item +Special variation of @code{pam-mount} to mount @code{XDG_RUNTIME_DIR} + +@end itemize + +@end defvr + +@deftp {Data Type} greetd-configuration +Configuration record for the greetd service. + +@table @asis +@item @code{motd} +A file-like object containing the ``message of the day''. + +@item @code{allow-empty-passwords?} (default: @code{#t}) +Allow empty passwords by default so that first-time users can log in when +the 'root' account has just been created. + +@item @code{terminals} (default: @code{'()}) +List of @code{} per terminal for which +@code{greetd} should be started. + +@end table +@end deftp + +@deftp {Data Type} greetd-terminal-configuration +Configuration record for per terminal greetd daemon service. + +@table @asis +@item @code{greetd} (default: @code{greetd}) +The greetd package to use. + +@item @code{config-file-name} +Configuration file name to use for greetd daemon. Generally, autogenerated +derivation based on @code{terminal-vt} value. + +@item @code{terminal-vt} (default: @samp{"7"}) +The VT to run on. Use of a specific VT with appropriate conflict avoidance +is recommended. + +@item @code{terminal-switch} (default: @code{#f}) +Make this terminal active on start of @code{greetd}. + +@item @code{default-session-user} (default: @samp{"greeter"}) +The user to use for running the greeter. + +@item @code{default-session-command} (default: @code{greetd-agreety-tty-xdg-session}) +The command-line to run to start the default session. + +Possible values are: + +@itemize @bullet +@item +@code{greetd-agreety-tty-session} - bash terminal session + +@item +@code{greetd-agreety-tty-xdg-session} - bash terminal session with XDG environment + +@item +@code{greetd-agreety-session} - custom instance of terminal session +@end itemize + +@end table +@end deftp + +@deftp {Data Type} greetd-agreety-session +Configuration record for the agreety greetd greeter. + +@table @asis +@item @code{package} (default: @code{bash}) +The package of command. + +@item @code{command-bin} (default: @samp{"/bin/bash"}) +Path to binary relative to @code{package}. + +@item @code{command-args} (default: @code{'("-l")}) +Command arguments to pass to command. + +@item @code{extra-env} (default: @code{'()}) +Extra environment variables to set on login. + +@item @code{command-generator} +Function that receives instance of this configuration as an argument and +returns @code{program-file} that can be used with @code{agreety} greeter. + +Both @code{greetd-agreety-tty-session} and @code{greetd-agreety-tty-xdg-session} +uses @code{greetd-agreety-session} under the hood. + +@end table +@end deftp + +@defvr {Scheme Variable} greetd-agreety-tty-session +Provides instance of @code{greetd-agreety-session} which starts @samp{"bash -l"} +on login. +@end defvr + +@defvr {Scheme Variable} greetd-agreety-tty-xdg-session +Provides instance of @code{greetd-agreety-session} which starts @samp{"bash -l"} +on login. Additionally, will set @code{XDG_SESSION_TYPE} and +@code{XDG_RUNTIME_DIR} environment variables for session. +@end defvr + @node Sound Services @subsection Sound Services