From patchwork Sun Aug 22 21:50:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32227 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 323FC27BC85; Sun, 22 Aug 2021 22:52:17 +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 E427E27BC78 for ; Sun, 22 Aug 2021 22:52:16 +0100 (BST) Received: from localhost ([::1]:49694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvO4-0007uV-0c for patchwork@mira.cbaines.net; Sun, 22 Aug 2021 17:52:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHvNq-0007tN-Ex for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56627) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHvNq-0002ut-7d for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHvNq-0007dS-51 for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v5 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: Sun, 22 Aug 2021 21:52: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.162966906729164 (code B ref 49969); Sun, 22 Aug 2021 21:52:02 +0000 Received: (at 49969) by debbugs.gnu.org; 22 Aug 2021 21:51:07 +0000 Received: from localhost ([127.0.0.1]:39912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvMw-0007aF-Rv for submit@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:07 -0400 Received: from mail-ej1-f49.google.com ([209.85.218.49]:41619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvMt-0007Ze-Va for 49969@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:05 -0400 Received: by mail-ej1-f49.google.com with SMTP id d11so32656067eja.8 for <49969@debbugs.gnu.org>; Sun, 22 Aug 2021 14:51:03 -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=Di+RaDXfffZnXdihEiEVOZvc5R4yoqmgOohAZD7b8rmop4X1xS940wuXS6KesLaSEE lYKR2ksJRbm+v56d0k6zYIT7Bw9cuLbJMr7pbZl6XLxznZ+TG1bysW0WNYPgDXl0TIOi sufdaMaxdzdSoLMEyUMsGSYpScZV0JmM0KafGa6r8JqjyfUaz7aYFS2wnsd5a8y/X4Ps w3HmN28kPI844RfDpsKCaTvagdo3m+CRd5l7ShEfmvJ2i4r4vKvHPzvqUnK/efi+wu5E 6r8RJW0XBGGwKDTRQ2Y6f1JL0UHGO4aXbc7+t0tfthGc9XUpl1wBO3xlKb/7oMmBiuN9 qxKw== 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=frjacQIPPu+69uqtg4W+s8JkQ6XEdo6tbOK0aDZPr1XJGrSwTaj554Uz3M2Rd5gYpK 2mOeNZf3+u1Hsk7MCQxuB7bNhYmAcozCKm/Azv7EwAwZ581/gPY1fTi1Ya5sbjcuGmLQ 1MJ6PzP9Z2Voak/aGi0gCBJ82K99MyBuYeOWkeL/Tn+upj0jxMpNIAHr3ymPwesf5kb/ 8S0k7pXNxDHOnPUtuZTfCfD2KbgbGcQEn9numSfOVpmQnjHjFwcUb4D6OryFQVHUM0wM X90MI0EYi9RDZd0FcFJO+wo985YmqjmcCdqHsC9/VCdPY3/f/qAaMlfcJa4N8NMU0815 lesA== X-Gm-Message-State: AOAM533Y0arxDLn+c3I6xWnmWceiEloAMmoCHIoZ6+Glk+3Dr3PmpK5P ONZUahgspqO5jntYI3RO2k1UOWwogSRoeQ== X-Google-Smtp-Source: ABdhPJwPT5KmTdXEAAHsWaUUUudMSxvOyt4P6f4vtr2qKtMtOgi95uoG9sARU0EOhf+VBHhjOcA2+w== X-Received: by 2002:a17:906:fa12:: with SMTP id lo18mr33038056ejb.84.1629669057983; Sun, 22 Aug 2021 14:50:57 -0700 (PDT) Received: from localhost.localdomain ([31.142.76.217]) by smtp.gmail.com with ESMTPSA id q5sm7959755edt.50.2021.08.22.14.50.56 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 14:50:57 -0700 (PDT) From: muradm Date: Mon, 23 Aug 2021 00:50:39 +0300 Message-Id: <20210822215048.20480-2-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210822215048.20480-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> <20210822215048.20480-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 Sun Aug 22 21:50:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32228 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 90AF327BC78; Sun, 22 Aug 2021 22:52:17 +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=ham 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 0146727BC82 for ; Sun, 22 Aug 2021 22:52:17 +0100 (BST) Received: from localhost ([::1]:49702 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvO4-0007vb-0R for patchwork@mira.cbaines.net; Sun, 22 Aug 2021 17:52:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHvNq-0007tS-Pp for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHvNq-0002v0-Hv for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHvNq-0007dZ-HI for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v5 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: Sun, 22 Aug 2021 21:52: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.162966907229206 (code B ref 49969); Sun, 22 Aug 2021 21:52:02 +0000 Received: (at 49969) by debbugs.gnu.org; 22 Aug 2021 21:51:12 +0000 Received: from localhost ([127.0.0.1]:39918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvN2-0007av-7N for submit@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:12 -0400 Received: from mail-ej1-f51.google.com ([209.85.218.51]:34342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvMv-0007Zg-Fd for 49969@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:06 -0400 Received: by mail-ej1-f51.google.com with SMTP id u3so32775594ejz.1 for <49969@debbugs.gnu.org>; Sun, 22 Aug 2021 14:51:05 -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=gvM4gjIZid0IgSFP6WDRApwMC0ca6MXhqNVghCq57S5wEjEDemt5mK7LLFMedS+gQF r+oLH34ekX5Nj03GzApPz+/GNvejCWRlyxqfPGb98Z6mnEzLLbbKUMURfmow9B9RWgxW ELaaIpRIkWMfaJZ8t3kOcDxzl9dvKeKkchGPJcItBpFXlavdb9+bAIqeswBxJG8Kms6V CGjAopUjGo6uZ6stCl/HdFf+B2dHUrN2H3OhWNCqi/Z4SegAd+49U3jMBo/6QMR7E+se zIzd3vX+AA9x4HN/1HZ14R0O7jCrS+vatTfbhokSzYFXZW+xLI4y8yJRbqTbYO3J9t/A 9AXw== 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=BxraYfPDJ2+09sN1Cg9XCJKsx1hJqHWemJYqulmlm6K4L5shcajGPTTBkWXokwLFrg M3vo5TMkaGKTOm0Q8+BQMOMs2CyAHTo2zZBv4Oo2DZ125ROKiPATzNXpu8uJB7Ip478B QXvs/xOokaF9JylxgkYEcRLbSlzj9EI+cnTmPZ//jJXX95GXACBVGGqysKN0FhRdNtkK 70Wxhtys5s5+MIKLU2FI6lhmcyJwCuLJ0csCd2b4axejZpIobvC50telwGZpBmtVht0+ +/yojog+edsKCGU2y4LNoGspTC9dYgmON9mrAlNxfcxo0atxuBQDxSeMFeUdGPkMNjzD kEKQ== X-Gm-Message-State: AOAM530XWSMrTEO56btHn1jOueI9MaYryB8K4HCRvZBjc70IGXWBO8vF WacU6YnADWoQwXuMFerkZq5BiaFob+0v7g== X-Google-Smtp-Source: ABdhPJz/ecOhd+2rELURziLt10R7PJ9LLqoQJx4ZyQtTmiJ83E+blVoUFu6NopEUb4bQDiUihC1/dw== X-Received: by 2002:a17:906:4892:: with SMTP id v18mr1998686ejq.541.1629669059531; Sun, 22 Aug 2021 14:50:59 -0700 (PDT) Received: from localhost.localdomain ([31.142.76.217]) by smtp.gmail.com with ESMTPSA id q5sm7959755edt.50.2021.08.22.14.50.58 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 14:50:59 -0700 (PDT) From: muradm Date: Mon, 23 Aug 2021 00:50:40 +0300 Message-Id: <20210822215048.20480-3-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210822215048.20480-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> <20210822215048.20480-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 Sun Aug 22 21:50:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32234 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 E6F4A27BC78; Sun, 22 Aug 2021 22:54:45 +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 5795E27BC6B for ; Sun, 22 Aug 2021 22:54:45 +0100 (BST) Received: from localhost ([::1]:53532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvQS-0002Ab-FG for patchwork@mira.cbaines.net; Sun, 22 Aug 2021 17:54:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHvNr-0007u9-IB for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHvNr-0002vk-BA for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHvNr-0007do-A8 for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v5 03/10] gnu: freedesktop: Add greetd 0.7.0 Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 22 Aug 2021 21:52: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.162966907829244 (code B ref 49969); Sun, 22 Aug 2021 21:52:03 +0000 Received: (at 49969) by debbugs.gnu.org; 22 Aug 2021 21:51:18 +0000 Received: from localhost ([127.0.0.1]:39922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvN2-0007b9-Nr for submit@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:17 -0400 Received: from mail-ej1-f41.google.com ([209.85.218.41]:41617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvMx-0007Zq-8R for 49969@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:09 -0400 Received: by mail-ej1-f41.google.com with SMTP id d11so32656212eja.8 for <49969@debbugs.gnu.org>; Sun, 22 Aug 2021 14:51:07 -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=nEINoMLrzaS30XC8gG/xmfBFpnpQM1RqcwbtjT5QaQU=; b=P8WT7RwLI/Bi+swmBQ9bU4J8z1oMV9weR0CCnouIBSxSo4uMdl59qL6DSdUslfXzxH xLjgW/B65QZ2SD07pl8qHCg3GLBVINP988MMuuHdyr4j9nem0W4gTeo9QfqEnzaMrDgA UXDUIcbCHWsyahUHaeIr0rNmvwMD5fDGtRB4h6k5FoyC31MdLpaQ3B6TLlcwg3wTirWe +iDxqj8lRb0PjiNwZEqJNX7HE/5bq8KPf26wcLUhJi+bSTPsQ/WKQe2+guLER+u/hyok h15qbyPP+YxI57AMDA5b3qA1WD1VvHgjfleYRQJW745Pax96pUZO9jCHuD7oKDNElGPF z0XQ== 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=nEINoMLrzaS30XC8gG/xmfBFpnpQM1RqcwbtjT5QaQU=; b=d5MR8XfQ5OPorgEAG5t/AbMT91UKeNbtx88ULhgV5PoFESkkk8EloYPf7K+Hm7A/c1 NV45GTD2PAaXZJYYCIXGK0W2ABXAyCfrUnRC9soI76asFC+qt5tJAe7jh28jfXgs8NVR J48Db+keegHp6YGuQfyRDIIl1mM7hVlkP1YMM0/13VfFUgPIWVvTjdYgatAbAduZ+Mne pxXreUUDNgZXOHTz6zHzR5kckRxmY0aV+SBtxRoSh+T2RXnHCqsDzv/cZhR+Wza1W334 f0RbBgYJHTrMvHIfLNaAf5zhOdbjUk9NNsLUKzkATQP4wHvjsHC08BYz8gl71/e7D2En 2y7w== X-Gm-Message-State: AOAM533wLW7XzbqxI9XdEmuLl/VemgCXQx97nPMHUskfaEQ7qBpEk9Jq PkgVj3QTF7KQ7b9whax9U0y2ZY8O2JDkbw== X-Google-Smtp-Source: ABdhPJwE8218gPCFsEfkiKQUvJwS77ZAm4zF7q0RRRybkYZVaaNfEPimTYmgbE6+Sc8uU8IjcY2lmQ== X-Received: by 2002:a17:906:2ad5:: with SMTP id m21mr32408542eje.88.1629669061259; Sun, 22 Aug 2021 14:51:01 -0700 (PDT) Received: from localhost.localdomain ([31.142.76.217]) by smtp.gmail.com with ESMTPSA id q5sm7959755edt.50.2021.08.22.14.50.59 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 14:51:00 -0700 (PDT) From: muradm Date: Mon, 23 Aug 2021 00:50:41 +0300 Message-Id: <20210822215048.20480-4-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210822215048.20480-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> <20210822215048.20480-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 Also adds greetd-next which is built from master that includes configurable terminal switch flag, required for smooth operation. See https://lists.sr.ht/~kennylevinsen/greetd-devel/patches/24441 for more details. * 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..aa83eb0a37 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-next") + (version "0.7.0-87e9277") + (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 Sun Aug 22 21:50:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32235 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 F3F1427BC78; Sun, 22 Aug 2021 22:54:57 +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 B229127BC6B for ; Sun, 22 Aug 2021 22:54:57 +0100 (BST) Received: from localhost ([::1]:53748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvQe-0002JZ-SA for patchwork@mira.cbaines.net; Sun, 22 Aug 2021 17:54:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHvNr-0007uF-VQ for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHvNr-0002vq-OL for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHvNr-0007dv-Mq for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v5 04/10] gnu: admin: Add greetd-pam-mount Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 22 Aug 2021 21:52: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.162966907829257 (code B ref 49969); Sun, 22 Aug 2021 21:52:03 +0000 Received: (at 49969) by debbugs.gnu.org; 22 Aug 2021 21:51:18 +0000 Received: from localhost ([127.0.0.1]:39928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvN8-0007bc-0c for submit@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:18 -0400 Received: from mail-ej1-f53.google.com ([209.85.218.53]:41630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvMy-0007a2-JQ for 49969@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:09 -0400 Received: by mail-ej1-f53.google.com with SMTP id d11so32656252eja.8 for <49969@debbugs.gnu.org>; Sun, 22 Aug 2021 14:51:08 -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=y53qC9p+2GugUNpQZ1KPJ2T4kFLH5+RlsHbNr+YHUfAAzkXFGHKMKvdqF7T9yGvRK4 jCzNDqKINSqszNyaDtwaRFUibYYaIf4wJrKsEPIR/RRQlTBlxpvSn0p9NWFoLZptuFGB qoiUgRdCz/e3Z661bvxX4TIEXXeg1/JaQG8DvpRHm40R4Oi4Pk6o4uLH1bc3TktC/Ucw wbMmDjzSfLTW/ZHpkRh5NjN3HZry9TRzt04c/tW664W9/+yFG2FSTRhFEWnPulYROrCH daJNrPZeyeu6zVy6567u5rGcauZiEjBmHTf1Rsr2Re7roeoiutU2kQBfq90AvgUDHsOU hGfw== 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=qhR1yn1WSce9uDDNyn+DfO5XIvQIzKWbROReQhurbVVrUT+K2+sPHcaX2dXi5N9B28 ur9F0BVUB9t+W8b4NdQP3pzlOrBkorr6K3utXA11HXhJ2l8CTRgbBWbniVn4752yi71D KvIa/y0h1Ab3slPD6d7yLaccQLnSrrbwt6BGMoV8NJP5dGvvUlZGfEwhDu/2yVXG80yw 4VARGY3HpDL96347wEsG/ylZhPiMU9bt3lZhMmW7+aGJjn6jTABkyaEm1Fny0+8nkKG5 opuIOWbVWjwX6tuAUoKJhAzQVSAwYBSThPHUd9sSwBnoZaSYBZ36sokvJwQGnOGC2Mq1 S9+Q== X-Gm-Message-State: AOAM5328YiWA7RI5oa+XyBlQcQzo2tiaREaHfGwJVQiTzZYogH5SLacS 23ykYYVpFup2oShgm9W+7ScJEP30hl5wVg== X-Google-Smtp-Source: ABdhPJzXI8BpsFmSEhYo4WnvNP5n9AMboQJk5MsCyUD6WkF+JIUz/8+1trTn93yVA/6j2WcGImUBqw== X-Received: by 2002:a17:906:85d0:: with SMTP id i16mr32870455ejy.552.1629669062644; Sun, 22 Aug 2021 14:51:02 -0700 (PDT) Received: from localhost.localdomain ([31.142.76.217]) by smtp.gmail.com with ESMTPSA id q5sm7959755edt.50.2021.08.22.14.51.01 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 14:51:02 -0700 (PDT) From: muradm Date: Mon, 23 Aug 2021 00:50:42 +0300 Message-Id: <20210822215048.20480-5-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210822215048.20480-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> <20210822215048.20480-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 Sun Aug 22 21:50:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32230 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 D2B5A27BC6B; Sun, 22 Aug 2021 22:52:27 +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 0EDA527BC78 for ; Sun, 22 Aug 2021 22:52:27 +0100 (BST) Received: from localhost ([::1]:50426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvOE-0008Sk-5c for patchwork@mira.cbaines.net; Sun, 22 Aug 2021 17:52:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHvNs-0007uW-Bn for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56632) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHvNs-0002wF-3u for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHvNs-0007e3-31 for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v5 05/10] gnu: desktop: Add seatd-service-type Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 22 Aug 2021 21:52: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.162966907929265 (code B ref 49969); Sun, 22 Aug 2021 21:52:04 +0000 Received: (at 49969) by debbugs.gnu.org; 22 Aug 2021 21:51:19 +0000 Received: from localhost ([127.0.0.1]:39930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvN8-0007br-Ps for submit@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:19 -0400 Received: from mail-ej1-f44.google.com ([209.85.218.44]:38584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvN0-0007a5-6X for 49969@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:10 -0400 Received: by mail-ej1-f44.google.com with SMTP id n27so776741eja.5 for <49969@debbugs.gnu.org>; Sun, 22 Aug 2021 14:51:10 -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=JWXU6HNjKXKLPCZywxFJOAG5aPyg02aaFLYIgFA2r9wJ5BsHodWxtKErfaM2LXTnjU rNNl4Eyh0aOYNd97Bm1SMiQSVOChoRkLjOjLM69V/ZBf1TtsbHOqwMrbl7gDlrHjoEht TaE91eSMhB8LnUR0aCIF8p1KihF0Si+uUST8fPHoTzXjgmduusaMDWHc5+zLI2UL3/wz anXP6nfaeTgpczgzxxufZX++e93QXrlL14DwjgrmeK11bPkGRFjFZGi0Wo5QWulT50uh DwQhnPB3sJ6NxU3JbdyyPdpUsO1Bfdu5egVTOtlntXJF2jgRS9VlxDltQr6E72rFNjGx SZ9g== 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=i41FCDbzRuuhFdcJOHtEFjISX2O5/+E/TqwXTraBCBxba5Yi4qgm65ODpfhkJ9Svrp 7X1zCbX8hJJHQiQlT7HuzpGl3I7PsLlII+ISpk+TRNsPk6XmVFfJgGbid8MBJJOgvKqy QqzRhepUU9Rb7Rjf+0Ntno83BVR6f5n6AwT2LTtWzLcI2eDaed9hoa9xH9FyG01tiWFB AmSxCP4HnvV01cTkuLC/pbNQw0odnize7WISGC48jkWW6fzFXcQfJKZirHHCS2nW/+X6 bccLK0748iuD2tmV72CD+6DfVGuSHmkjdwaOfOlGDIPaplaxQlV0fjOx1yH4738Bg3ej IbZQ== X-Gm-Message-State: AOAM532PvPTT+/PW1YQ3Jp8UFQzxn3MLN44yBkGtSYgA5UvzOPAT55OJ YT7SyevqxrsRXpEm+puBnDpcwnOMMkcAGQ== X-Google-Smtp-Source: ABdhPJwxPsBRo2+HE0T72ud1LXzvKMsQ2ZWrPJxtZLSfg1RR8vRAi+nQEA76tjL6d+jfqKoF4cqgGA== X-Received: by 2002:a17:906:1994:: with SMTP id g20mr24406962ejd.397.1629669064223; Sun, 22 Aug 2021 14:51:04 -0700 (PDT) Received: from localhost.localdomain ([31.142.76.217]) by smtp.gmail.com with ESMTPSA id q5sm7959755edt.50.2021.08.22.14.51.03 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 14:51:03 -0700 (PDT) From: muradm Date: Mon, 23 Aug 2021 00:50:43 +0300 Message-Id: <20210822215048.20480-6-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210822215048.20480-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> <20210822215048.20480-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 Sun Aug 22 21:50:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32229 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 674BE27BC82; Sun, 22 Aug 2021 22:52:18 +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 C726B27BC78 for ; Sun, 22 Aug 2021 22:52:17 +0100 (BST) Received: from localhost ([::1]:49770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvO4-0007yn-TW for patchwork@mira.cbaines.net; Sun, 22 Aug 2021 17:52:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHvNs-0007ub-ON for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHvNs-0002x8-Gr for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHvNs-0007eA-FO for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v5 06/10] gnu: desktop: Add greetd-service-type Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 22 Aug 2021 21:52: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.162966907929271 (code B ref 49969); Sun, 22 Aug 2021 21:52:04 +0000 Received: (at 49969) by debbugs.gnu.org; 22 Aug 2021 21:51:19 +0000 Received: from localhost ([127.0.0.1]:39932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvN9-0007by-6b for submit@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:19 -0400 Received: from mail-ed1-f50.google.com ([209.85.208.50]:46648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvN1-0007aD-IO for 49969@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:12 -0400 Received: by mail-ed1-f50.google.com with SMTP id r19so23084988eds.13 for <49969@debbugs.gnu.org>; Sun, 22 Aug 2021 14:51:11 -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=4RvNuH2f0DUKJXveSm9L/j8vYPWQ0l8XsRGzPRTkteY=; b=lZiUMqXMPb2z+nuJxH8NQyAKawrW3DLiC7RNEjw8mmrlsyv18SK27mtP6H8HrYuYe0 Zqbdp6GoUwL+2Ln05iIzLIWFdtSXqC8aTkZ3fcK7q+IzmqFSD9yLYIvtOqSrTpuy80oc kzbOXqm6Q11JO7vjWmlKdV4MEHQEoYXXWqSliplVjpVktl27EdDuo95pUndMHM6PQ6zG B6yigbCxPLvj/ngsihhLShEYqDPVjnQLQQ5N1BNQ/ApLn8f6+QKD5ksLkSmFr2MZD3T9 pHADxl5b2EaDwnKCQJjmFYUBGZckc9nEzFu2rJRDXFljLHID8HlQO+LRYai5MYibQVzl mC+A== 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=4RvNuH2f0DUKJXveSm9L/j8vYPWQ0l8XsRGzPRTkteY=; b=lCboV54tV+2Z1j3Hgqkgh1ja79oHGHJdzVLi1fBNn+ekZAS9v/e2SgN/MfPMSjCWrp WKdgefjS7k9N7Fav0+vVKmz/Rf3i1l5VhU6jYTiRiQnphZpDmjp2m/6vmDe6bPS72RSB Gtyqb+bWspejI9JPWxwfFGGHdxLvaDN3L3OeMTTPmsGlOpLnfecP7O2Jf1NQOXkzA1Ma +K5fGUIIMBeC41uE0VZOM4XpqjMQuBoUhC/fOQh6XlCZcjgcPbohHGqKZrr/iIYHVuxH eXlHBpNJk54TXrGzTb75ZFIizX6h3/iC3yGo5oX0rgGEVYl1VpUu4sLSJ7DKNxF8IwP3 LWSA== X-Gm-Message-State: AOAM531YA2cqS1/nt/ZIs7YKUtuk3cqs9ltLQabr/mEIFci9xi28aDEx UP7SR9DUwyVcA8BBAZQjqNHzDhC5pg6Udg== X-Google-Smtp-Source: ABdhPJxczoEOPfK/1GaKnP8k0jYd7KDHFtw4a/uDHFyozJlEGWNlzCzSk98DsFKFtnlrgnbREw+QAg== X-Received: by 2002:a05:6402:1601:: with SMTP id f1mr33874946edv.388.1629669065514; Sun, 22 Aug 2021 14:51:05 -0700 (PDT) Received: from localhost.localdomain ([31.142.76.217]) by smtp.gmail.com with ESMTPSA id q5sm7959755edt.50.2021.08.22.14.51.04 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 14:51:05 -0700 (PDT) From: muradm Date: Mon, 23 Aug 2021 00:50:44 +0300 Message-Id: <20210822215048.20480-7-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210822215048.20480-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> <20210822215048.20480-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 | 229 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 229 insertions(+) diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index c42db5987e..1f4838d4d8 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,228 @@ 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-next)) + (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")) + (arguments '("disable_interactive")))) + + (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 Sun Aug 22 21:50:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32232 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 8495627BC6B; Sun, 22 Aug 2021 22:52: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 0619127BC78 for ; Sun, 22 Aug 2021 22:52:47 +0100 (BST) Received: from localhost ([::1]:51156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvOY-0000WB-4x for patchwork@mira.cbaines.net; Sun, 22 Aug 2021 17:52:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHvNt-0007uc-6B for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHvNs-0002xE-UP for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHvNs-0007eI-U0 for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v5 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: Sun, 22 Aug 2021 21:52: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.162966909829298 (code B ref 49969); Sun, 22 Aug 2021 21:52:04 +0000 Received: (at 49969) by debbugs.gnu.org; 22 Aug 2021 21:51:38 +0000 Received: from localhost ([127.0.0.1]:39934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvNR-0007cS-Pt for submit@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:38 -0400 Received: from mail-ed1-f47.google.com ([209.85.208.47]:44583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvN3-0007aW-6d for 49969@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:13 -0400 Received: by mail-ed1-f47.google.com with SMTP id s3so10869494edd.11 for <49969@debbugs.gnu.org>; Sun, 22 Aug 2021 14:51:13 -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=NEAAvGAGqfXW3hGKMOyMst6Nr4Vh/+fuEIsLl55yF6o9j/4usLCwbGm5C2/EWjFj+u OjSuA5DO+igdGvUpKAoG8l3z0kFZd0INJbC5mZgeAZfJ1/+tkgwG802k1T1NaFx1qGp5 AVEo6wGp7e4wRKfH2txsMWpRubWi6ovqY9TR8xXGd0ZDBUDssJtw/DXGiTIJ0aUQQUyW ZwiE/pvsyASmvxrxiZF+GKLSu+0WkwGGbQTVfk1j9YRr4g9ugHEX1VWMLgsaQCCrDtwP elZ6fqW2ClgSquVPGRS6qJVBXLDsJdEqrhqZLdVlaGyPaFrpHx8oUhG2Py/FXzYRIJAE wGBg== 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=HbTzu4yH15z0D8DGZ1KnPudllY0xapwEsocRhjzE9VaXx2qeMdVHWWd4cvAwlel8JH F0TbmjZDlbcQbgrj/GP7chqdKQvBPj3Mzr6aZeKO+f6wbPrjctPRiPWmfyYYbH9qh1EZ RTILn+o58pJaNt8vBlkOxIG2mFO8MtNtRsOo04P2cTcwSPdbrMUNot/SFHNW4+qF+zEZ CoevvXirgmcTRckk56sbPYy4W6UrH6rzv65TN9QnSeIVjLLPoG+W15QXvgeFn3ZdAXsM teEd8tNw3q6RXaRrBlAnT5fEEGT+IpmCZzpfVAwU1/dTOQRaBbGNiJbmwxtc/oB7qyjg AHzw== X-Gm-Message-State: AOAM532p7vZnlaKXoCe9idNqOXbS/LFsIgBPR8emugj73Libz/3na6Fm 2UNoYespGKZeNWdDFCdlGQfLdf8A74S8/w== X-Google-Smtp-Source: ABdhPJyJMx5I4uPo3u+/NRDXGRJ6GameOWqA2wXOjb2o5G3uKdVFxngrbIWNbjodD7kFOZ7/f1bgVA== X-Received: by 2002:a05:6402:8da:: with SMTP id d26mr33463125edz.109.1629669067156; Sun, 22 Aug 2021 14:51:07 -0700 (PDT) Received: from localhost.localdomain ([31.142.76.217]) by smtp.gmail.com with ESMTPSA id q5sm7959755edt.50.2021.08.22.14.51.06 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 14:51:06 -0700 (PDT) From: muradm Date: Mon, 23 Aug 2021 00:50:45 +0300 Message-Id: <20210822215048.20480-8-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210822215048.20480-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> <20210822215048.20480-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 Sun Aug 22 21:50:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32231 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 5223827BC78; Sun, 22 Aug 2021 22:52:32 +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 A2BA927BC6B for ; Sun, 22 Aug 2021 22:52:28 +0100 (BST) Received: from localhost ([::1]:50490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvOF-0008V7-PT for patchwork@mira.cbaines.net; Sun, 22 Aug 2021 17:52:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHvNt-0007uh-Im for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHvNt-0002xL-BN for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHvNt-0007eP-9z for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v5 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: Sun, 22 Aug 2021 21:52: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.162966909829305 (code B ref 49969); Sun, 22 Aug 2021 21:52:05 +0000 Received: (at 49969) by debbugs.gnu.org; 22 Aug 2021 21:51:38 +0000 Received: from localhost ([127.0.0.1]:39936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvNS-0007cU-4V for submit@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:38 -0400 Received: from mail-ej1-f51.google.com ([209.85.218.51]:41638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvN4-0007ak-Ml for 49969@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:14 -0400 Received: by mail-ej1-f51.google.com with SMTP id d11so32656585eja.8 for <49969@debbugs.gnu.org>; Sun, 22 Aug 2021 14:51:14 -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=CUsk2N7LsSMhzZqY8Ac9vEJhZxde5/2Yo3qjrG3VMnzDIXOhtDU9UNCo2B1IooiyAn nGTUzFpV28MU9HYOQtuwcgJKfhudChReJv8fNl3uECDUH2+bNccZGfMQrEBH5F7RmN4M A3WqhSrvNE2eHZ+Zw9wyCm75jvuBMpLP8P9HfKRe8EMsLzbOHoVX8WJKevIGCuMLQBtM UMvSKieWeqQ4fG6Xqy1NmzES7/gXNf56ZXvfnZL96pwNRh29exFu+5OnIDV3hHtUP8Uw 5DNAt+Ghgi7t48aDs0KvO3CfA+8dAuvAN8G68gevaLB7GwjazJrMpMDMAAksw1KZIoDi 2sCg== 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=NLqW04Jfw6jy+TosM9686W5TphhenpKe4D1djm8MY5cL+dAfT9oz4MFvFHPcX4wvfV CXmixiu1cB17ZnQVhDlL9qWCR2rO2pbRr7bxVbxYvp9ggqbftc9RdmuqCWGf5q+JWdR6 aWgLGACHvue58Gt870QpUTlN5Sc4MXFw6nonYfMlia59qPKEqJu4BdrzrmGUDsNPc6W1 y0/rAqxMmGlZTWhsxbx7NK4HMucGnNDUhFLMP8FYvgzdz7JepKTIgBEVmkkI/DGSjPS1 61KCMPTjvUs2hFCEri18qDua0okK7F1Sa5Kw1hwZ1HCxFdsQhJCwT0xbEWHK4S24y1wi jIUA== X-Gm-Message-State: AOAM531zv+7hDo6z9X5Ugw5xoagYhxk449nsha1MGGBt3PU3WRlcLZIq WJaLt/45tMYzUTu8n2zangi8hI3r6AjVvg== X-Google-Smtp-Source: ABdhPJy+MQuwodgz6uNaLfTSycYuo1qkSdooc+Z3gn9kxzdtSQfFmDhhvKK9futx0e7QLPRkVRKbqw== X-Received: by 2002:a17:906:9bdc:: with SMTP id de28mr32142591ejc.154.1629669068805; Sun, 22 Aug 2021 14:51:08 -0700 (PDT) Received: from localhost.localdomain ([31.142.76.217]) by smtp.gmail.com with ESMTPSA id q5sm7959755edt.50.2021.08.22.14.51.07 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 14:51:08 -0700 (PDT) From: muradm Date: Mon, 23 Aug 2021 00:50:46 +0300 Message-Id: <20210822215048.20480-9-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210822215048.20480-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> <20210822215048.20480-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 Sun Aug 22 21:50:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32233 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 4B79C27BC78; Sun, 22 Aug 2021 22:52:48 +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 AC16227BC6B for ; Sun, 22 Aug 2021 22:52:47 +0100 (BST) Received: from localhost ([::1]:51220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvOY-0000ZW-QH for patchwork@mira.cbaines.net; Sun, 22 Aug 2021 17:52:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHvNt-0007ui-V6 for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHvNt-0002xw-O8 for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHvNt-0007eW-Mn for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v5 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: Sun, 22 Aug 2021 21:52: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.162966909829312 (code B ref 49969); Sun, 22 Aug 2021 21:52:05 +0000 Received: (at 49969) by debbugs.gnu.org; 22 Aug 2021 21:51:38 +0000 Received: from localhost ([127.0.0.1]:39938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvNS-0007cc-Ck for submit@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:38 -0400 Received: from mail-ej1-f45.google.com ([209.85.218.45]:33306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvN6-0007ar-Cf for 49969@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:16 -0400 Received: by mail-ej1-f45.google.com with SMTP id x11so32862626ejv.0 for <49969@debbugs.gnu.org>; Sun, 22 Aug 2021 14:51:16 -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=8uNEFbhCcZ5WCQmsAiAnbvd+W1moFq/ow1w3NN/2S2c=; b=gbBjsCaaUL0Obf69jTR550NoCL0SkKzZ5/Es6U2QtRrY0urcvRX+g0ZXNaelPO0YIO J4kVgQDQQuY0yDa8336eRP6GKW1nrHC8DZBt0Ls01ZvCuNiH4N2/HHLYU05q7Ayxnnni +Xfz8vpeU0tnGS9VpU+BktEumPuHeWB7HGobYeji8bMqw2ZyClOAEuYiwbcr9odjNQnI ZBEPDT9KT0Dsq8H+MAKEKCGCh73DD3Golfqm84DkQjZ4TAGgA/MdLM995A/vzNPlnHsq XUP9D04036mqfMv53rrj++icA7YeqPZGIdsiGZBKXEOL+nRQLm+Y9bkMjMJTC8+XZww5 ZaaQ== 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=8uNEFbhCcZ5WCQmsAiAnbvd+W1moFq/ow1w3NN/2S2c=; b=iyPXpC2ZnCn3TFXH+3wKZE80yEm9xpr4XOhXVHPTN6fspeIno6DanT9GJ9GlYoiq+F TAMsp7T9oY+D/hqgcq2OIUgUdaTQwYlzQV48AvFpiRZ+AXxzYksD0vm9/sH5X314LYc+ 10738MPNYKamWXbwzxUk3J4ym2rxhXS5Yt4iAfyCV5NHzpUSyhvfVq2A9kHlnCBwI7i+ ocadVY7jtHFuUcQN73iDkQgP6QCogOh5+bcGM21L6W1CIgnEv4qAW22Ix/CnZYDhnwt8 2flh0zSRwkEZqc+2XVh+zzNFbTzNXRStivKK8pzBwgSVOVZStJDyE0WWKfH6Sy9Zg558 KTlg== X-Gm-Message-State: AOAM533LSeD3bosdnXLVlwIuxGl3qy8qf86uEidjLOjk6uiUc6lPlmiZ ZaaVsePJZyslk1QypxwM2m0GsfEma3caMA== X-Google-Smtp-Source: ABdhPJyMJe+WEKb4ND0RWK0sTjP1RSqTMX/j4aVWgxAdhcCzCYpbw1cOju93KBR+nMeSGnaTMPpXww== X-Received: by 2002:a17:906:378f:: with SMTP id n15mr6208296ejc.467.1629669070385; Sun, 22 Aug 2021 14:51:10 -0700 (PDT) Received: from localhost.localdomain ([31.142.76.217]) by smtp.gmail.com with ESMTPSA id q5sm7959755edt.50.2021.08.22.14.51.09 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 14:51:09 -0700 (PDT) From: muradm Date: Mon, 23 Aug 2021 00:50:47 +0300 Message-Id: <20210822215048.20480-10-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210822215048.20480-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> <20210822215048.20480-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 | 190 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 189 insertions(+), 1 deletion(-) diff --git a/gnu/tests/desktop.scm b/gnu/tests/desktop.scm index 6aa22fd49b..463fe7e08f 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,187 @@ #: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" + "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 Sun Aug 22 21:50:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32236 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 A35A627BC78; Sun, 22 Aug 2021 22:55:08 +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 0E06C27BC6B for ; Sun, 22 Aug 2021 22:55:08 +0100 (BST) Received: from localhost ([::1]:53968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvQp-0002Sg-5s for patchwork@mira.cbaines.net; Sun, 22 Aug 2021 17:55:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHvNu-0007uj-BR for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56637) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHvNu-0002y2-4F for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHvNu-0007ee-3H for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v5 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: Sun, 22 Aug 2021 21:52:06 +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.162966909929319 (code B ref 49969); Sun, 22 Aug 2021 21:52:06 +0000 Received: (at 49969) by debbugs.gnu.org; 22 Aug 2021 21:51:39 +0000 Received: from localhost ([127.0.0.1]:39940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvNS-0007cj-RP for submit@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:39 -0400 Received: from mail-ej1-f52.google.com ([209.85.218.52]:45877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvN7-0007az-M1 for 49969@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:18 -0400 Received: by mail-ej1-f52.google.com with SMTP id e21so16833970ejz.12 for <49969@debbugs.gnu.org>; Sun, 22 Aug 2021 14:51:17 -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=YqgNTsAIUCjuQ/rnza+49PvRULkOaokN/a+4k2+tycE=; b=EwWrkCQQLch4tm9VsHuTD9bVQqPjStVfU/tLoTxJFNk47EPz6pdOJAmm5jy1SF/z6O 9AwvzLxCWk8TSqV68ymdmyFF7HI2ZQGaUbDGkNeioIU3OY/P1DUZwNXWlPdQreZ94fc/ OxdADVShlBw7xdNRgO9OyLr1JoclkBLdMoZKKTMhQfqJdUSnkx6tOqd6a9PL9FAHc/TT CzEBJuMIqvnaZnjP3e1GVvaSydAFcE+AsJ1PR4zF18Q3Iebcc48nKyq/nc2Vnu0OSx5a HZxJvf8uxiYp8rAjfxpIiCL+1OFEOZsVzKcX5kyWjnExAnvzaxTNw2wZ44eYIko4ALGY aEKA== 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=YqgNTsAIUCjuQ/rnza+49PvRULkOaokN/a+4k2+tycE=; b=PyVVl3WgwcCkVC6nOFX6RQ7IYi1YxeGjObGa+OWt9yollnsmFOeHKredNacodCrD4c ecYuxIXRVin1frkpOBvb0VlzlLI98k92uCMeRgdDlf8dAcnBmN62EZidZ09IrXn+HSaE KaYu7fzeaoldliQaHSCEsDJvd4GCtZKdEHp18MOM/OxHQH0STmWUoAcu19oh+3CJ1gxM bvGkiqiyZua1uBeirGK/MRpJ9VJqRnO+IkVim+weonoZuS04xBsuyQdmi4HaN6nfws1s OOLE231GdFK3bMQzAsJrStMExFEer9rE7je9BFcd279IV6QIA6JnoupKw9C1k79eafz0 w5lA== X-Gm-Message-State: AOAM533Qh69OgrZrCGFJyQGST4t3pv+rvjvT9Uqf5mkIq0OSqiqkG3Cq wWeDFh8xlBJ5NBAhYNY5TVnE9BUbJ//iFA== X-Google-Smtp-Source: ABdhPJwHOOKzxfRMKHNi9TlyW2ypqpU7AYBsJ5fZyg/hajxlLhQbjac1NL/1uiyAKOnaIsJReZj+NQ== X-Received: by 2002:a17:906:49d5:: with SMTP id w21mr32029436ejv.30.1629669071612; Sun, 22 Aug 2021 14:51:11 -0700 (PDT) Received: from localhost.localdomain ([31.142.76.217]) by smtp.gmail.com with ESMTPSA id q5sm7959755edt.50.2021.08.22.14.51.10 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 14:51:11 -0700 (PDT) From: muradm Date: Mon, 23 Aug 2021 00:50:48 +0300 Message-Id: <20210822215048.20480-11-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210822215048.20480-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> <20210822215048.20480-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 2b8448c856..1590c29f9b 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -96,6 +96,7 @@ Copyright @copyright{} 2021 Domagoj Stolfa@* Copyright @copyright{} 2021 Hui Lu@* Copyright @copyright{} 2021 pukkamustard@* Copyright @copyright{} 2021 Alice Brenon@* +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 @@ -19767,6 +19768,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