From patchwork Tue Aug 10 20:07:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32003 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 7059627BC78; Tue, 10 Aug 2021 21:09:13 +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 E30DD27BC82 for ; Tue, 10 Aug 2021 21:09:12 +0100 (BST) Received: from localhost ([::1]:52322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDY3j-0000r5-LD for patchwork@mira.cbaines.net; Tue, 10 Aug 2021 16:09:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDY3a-0000po-Se for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDY3a-0007CH-Lf for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDY3a-0007Br-GX for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v2 1/7] gnu: crates-io: Add rust-enquote 1.0.3 Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Aug 2021 20:09: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.162862610427555 (code B ref 49969); Tue, 10 Aug 2021 20:09:02 +0000 Received: (at 49969) by debbugs.gnu.org; 10 Aug 2021 20:08:24 +0000 Received: from localhost ([127.0.0.1]:60878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY2s-00079p-2W for submit@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:24 -0400 Received: from mail-ej1-f46.google.com ([209.85.218.46]:35403) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY2m-00079G-RV for 49969@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:17 -0400 Received: by mail-ej1-f46.google.com with SMTP id w5so13539020ejq.2 for <49969@debbugs.gnu.org>; Tue, 10 Aug 2021 13:08:12 -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=IA2tm41JOw833UoybHSGJxPeblBYkg5VYWriA0hu6q8=; b=BWUraOzkPj4zqfO2ohPzNc3bxQRtykqbZB0wwo35SWSGR/5WH9zOWCz4tRhoeXYS4V Ii+z7OB0vgZKVsrr/QE1IY3gaXjNANUH/kjmBUINXcfViuVvWQcUcZp4dJDijZBjwvsy F1kYTsBFg5iScheIuqlDkZevSNNEOPUQ3SsZ7bfKkLMlCA6wtj/s5IjpnWZ9omSw1y2T RowGBOenNc1dMBcn19Y4nSuBsYoJmewipJgqvUe9lXZFEU89azUe7alg4ssJ2hay2L4K j0VpWyzD21OCpGmZ1jq9tzZZGKzYrJH9CCI0BcRjjyjDjwD/B0gsJCD15eBnLV9dOFr4 IYYw== 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=IA2tm41JOw833UoybHSGJxPeblBYkg5VYWriA0hu6q8=; b=dqluWWaxvEYpnFLk4DPlt28n7hsdBbu+Wmaj1gw4IVKjWCgUJyta/1OTEbsHg6+FDD 0N9P4317O3BKojgBZRuEsW9zaxofaRBu+2wT51AplnsXc+bRWE0l8hmeoSs4+wOJ/E+l XhNLRbolTVDyL2xlWTk+ImSdlPRRV9rfxvTTfCcEjZTwJkTzOPWYDwl2mlScjPf7BRqd gxIStqSYdHNAUEa3EP8iwWKWo+qWAeCHdPDwJ9Xlmq1t5TDwdeZRflUgmdKaEg78Em5e Qk52iOVCRGxeEzV7sMpk4uEnUiZm0ZCNix8+Mxd1844E/HTAOFwKo4ClgkKFEkzcuAFl lnCA== X-Gm-Message-State: AOAM532Ayyg8HM5JHUkkwqBcpFjXbCfSWaYpdN23QiHUjwb9hs6yXYir 6LBhMWT+ez2uX0ZN+JTnTzKXyIBiT5WSbA== X-Google-Smtp-Source: ABdhPJxEHne9ds6OaZ8yrk4zM/Jf9gBbmnt3nU3LyivOqmHUGHTdEjTj+yOxL1JFhcQmZ6/dacRzFA== X-Received: by 2002:a17:906:4dd5:: with SMTP id f21mr268925ejw.284.1628626086535; Tue, 10 Aug 2021 13:08:06 -0700 (PDT) Received: from localhost.localdomain ([31.142.54.188]) by smtp.gmail.com with ESMTPSA id qa34sm7247582ejc.120.2021.08.10.13.08.04 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 13:08:05 -0700 (PDT) From: muradm Date: Tue, 10 Aug 2021 23:07:50 +0300 Message-Id: <20210810200756.9581-1-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810193626.9186-1-mail@muradm.net> References: <20210810193626.9186-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..b458080ca7 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 + "This Rust library quotes, unquotes, and unescapes strings.") + (description + "This Rust library quotes, unquotes, and unescapes strings.") + (license license:unlicense))) From patchwork Tue Aug 10 20:07:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32004 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 E4B8627BC82; Tue, 10 Aug 2021 21:09:13 +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 A6E7B27BC78 for ; Tue, 10 Aug 2021 21:09:13 +0100 (BST) Received: from localhost ([::1]:52320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDY3j-0000qx-SF for patchwork@mira.cbaines.net; Tue, 10 Aug 2021 16:09:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDY3a-0000p9-GB for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49344) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDY3a-0007BP-8t for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDY3a-0007Bj-41 for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v2 2/7] 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: Tue, 10 Aug 2021 20:09: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.162862609527504 (code B ref 49969); Tue, 10 Aug 2021 20:09:02 +0000 Received: (at 49969) by debbugs.gnu.org; 10 Aug 2021 20:08:15 +0000 Received: from localhost ([127.0.0.1]:60873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY2o-00079Y-Rv for submit@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:15 -0400 Received: from mail-ej1-f53.google.com ([209.85.218.53]:42502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY2n-00079I-SA for 49969@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:14 -0400 Received: by mail-ej1-f53.google.com with SMTP id e19so37656645ejs.9 for <49969@debbugs.gnu.org>; Tue, 10 Aug 2021 13:08: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=OsYa1NfLVeJnB+RD2QLBDFSwgZI2JZ2nBHY4M+MIyYE=; b=VnzEwONglEtC8hhxmAj6+Fw44dU12MVzRmGFDRs8nHKwEED+IuHMBukmVeOrtIGq+7 16S4hdHSqsPC2XTxdD0eB3vMwgE/dvdm1/FPYe8GXWzlm4sqbMEH2Vxs7Z2U4qkLOt9a BQX5VZj6ot1Wm+z/gTz2e/wauyZVoph6Z/xqQjHz47VCTTet4V1qOKe3HOM45/cyaWpM pWxSVqgzLFIcZbCEgy+EwLHpFUxwIH8ceF0/yem3YvA9+5X2YtpgU5Mx5F9G4tuOe55S wY35TD7i9EumRBwc+QaV42ac4Cj+1EMor7EIXtV9yY/tnjB+LaoBmG3FXT3zaIlnYtSl czpg== 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=OsYa1NfLVeJnB+RD2QLBDFSwgZI2JZ2nBHY4M+MIyYE=; b=Vm2Pw0PQ1s98i410ZCUFZsjeHtRCY3wANqaba3Sl+ttMYoOoGQsaBGbkQRUKcRsPFo X8VlgnrcPksJ38IGqCm+34iqnVHarYi31hiCMth6ITOzTTxvf6WhHYBCGRAFSv+b0ZO+ GeH9NjGuWte5YZKZJAx9dC5sUp76mIqsUwRrSsiVdxvYDVzaNTf3cusfypXr82V+kN5O i4YS7dR6HqeIyRjpB3uog9W1+l//V2Hud8zSCIH0w3LGAybEOn6ZPz9ZEdNqkHFosF5c nYB3w60Zfw5PzuPNLI+arBQ9FuPwLo/DaJMj9zYepKqsWEIOBDIpUcg0Ubs8qxRwoA2q azrw== X-Gm-Message-State: AOAM531did0JfEtc8xWYq+lFXDDtttlaQTQBTSy/Qm/oPGXZyMizao7q KkCXI/NYRiAex9AUkFG8Ef3wcD5bE2fCFA== X-Google-Smtp-Source: ABdhPJzMGr5uecD7x4kDnCyP1HyyhlJ3UZtCHxbZh7GflmtSmHM8ma5sbdKCLVU66yU99z4K6u18Lg== X-Received: by 2002:a17:906:6490:: with SMTP id e16mr205122ejm.467.1628626087864; Tue, 10 Aug 2021 13:08:07 -0700 (PDT) Received: from localhost.localdomain ([31.142.54.188]) by smtp.gmail.com with ESMTPSA id qa34sm7247582ejc.120.2021.08.10.13.08.06 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 13:08:07 -0700 (PDT) From: muradm Date: Tue, 10 Aug 2021 23:07:51 +0300 Message-Id: <20210810200756.9581-2-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810193626.9186-1-mail@muradm.net> References: <20210810193626.9186-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 b458080ca7..b365a2c8c0 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -56,6 +56,7 @@ #:use-module (gnu packages image) #:use-module (gnu packages jemalloc) #:use-module (gnu packages llvm) + #:use-module (gnu packages linux) #:use-module (gnu packages multiprecision) #:use-module (gnu packages nettle) #:use-module (gnu packages pcre) @@ -56994,3 +56995,29 @@ variant of this library is available separately as @code{im}.") (description "This 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 Tue Aug 10 20:07:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32005 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 5270927BC82; Tue, 10 Aug 2021 21:09: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 B606527BC78 for ; Tue, 10 Aug 2021 21:09:17 +0100 (BST) Received: from localhost ([::1]:52344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDY3o-0000ss-Nk for patchwork@mira.cbaines.net; Tue, 10 Aug 2021 16:09:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDY3b-0000q4-8o for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDY3b-0007Ck-1s for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDY3a-0007By-TH for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v2 3/7] gnu: freedesktop: Add greetd 0.7.0 Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Aug 2021 20:09: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.162862610927566 (code B ref 49969); Tue, 10 Aug 2021 20:09:02 +0000 Received: (at 49969) by debbugs.gnu.org; 10 Aug 2021 20:08:29 +0000 Received: from localhost ([127.0.0.1]:60882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY2y-0007AO-75 for submit@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:28 -0400 Received: from mail-ej1-f47.google.com ([209.85.218.47]:36557) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY2p-00079K-2G for 49969@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:19 -0400 Received: by mail-ej1-f47.google.com with SMTP id o23so4489338ejc.3 for <49969@debbugs.gnu.org>; Tue, 10 Aug 2021 13:08:15 -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=VNGnseJDWam81ZBvjmqRKojMs5N5/djUyydulj9nhTg=; b=otJZRG1Uc03vdRMfOTaqJlsHFkWKDPbT//+6QDdQQOu/V1OrEvxSUQIZg8LfJOjz5y I+ixPsU56rWkjYX9NIytEHcvyTKo+IQv+PW0ryB1v4081BZvJwqmfIGmzJ70VGQy9/Fa jQ9lueKVEj5lcflG7jiT4XweLPBOhRcrcEd+/TK89rpexBUDrEIEoKOETRakpH2gqreI 4cTwZi5QJhbXq+mtSA/xqAHxPDdgJOWFWjuTh5R68CbTw02RIP59QdTvnN1UMP6vKhbH AXWBH7BLrsBfeWd7wrVxoUw2hPFG4H4Ope1QDb3vrgVVZyGsHFgUq2YFUrBmVA2nyDcx MmNQ== 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=VNGnseJDWam81ZBvjmqRKojMs5N5/djUyydulj9nhTg=; b=kZqV9vRo0KlXl8ODKnF0BSlY7Pe7+mzpr4ktuM4cSbiTlbiBAoHkzot8+D9g07EGMI UbgHrYZ2/Fzs7aZ7Ql4OO9T8+WZOYhHjrI1GPIzU9evCGYuJF6rigYnzsxLnEln6n+X2 /zPchY0FJEkLX8l5eM/QPnrjsjqu5DsHranFAwS4P1LyDJnXaXPFF+g0qCvMGRDPDQpe 7vbCHx/U/+i0FW9s3MP/+maWmMuRLWMp0iAzNVVmxvQnu/2VEoFZ8CfquS0NAlwLf/S7 pGMSo9gbNjwKja9bRlLJbsxsZcTA+EURuL4+7ObweNbpck/H9lzpH6Y0ivOP+nwzDBob y4zA== X-Gm-Message-State: AOAM531kj6gYC8PE6/T67Cj5llLdEo10BZ71+ORCvHIheEoHXK9kELQH oGBHLpEYE+kZSuyrRUN0M0idZV1RdzQ/7w== X-Google-Smtp-Source: ABdhPJyfs9qnbuIzv8Td3WAv1Dg1JDuVH95Bvky8g51iv8JZyLHYKwCg+jkVzsXzUx3GOjTKsy/YTw== X-Received: by 2002:a17:906:fa10:: with SMTP id lo16mr268603ejb.154.1628626089270; Tue, 10 Aug 2021 13:08:09 -0700 (PDT) Received: from localhost.localdomain ([31.142.54.188]) by smtp.gmail.com with ESMTPSA id qa34sm7247582ejc.120.2021.08.10.13.08.08 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 13:08:08 -0700 (PDT) From: muradm Date: Tue, 10 Aug 2021 23:07:52 +0300 Message-Id: <20210810200756.9581-3-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810193626.9186-1-mail@muradm.net> References: <20210810193626.9186-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 | 80 ++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 693a79c738..631d36e765 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,83 @@ 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 + ;; once https://todo.sr.ht/~kennylevinsen/greetd/25 + ;; is solved, below patch can be removed + (add-after 'unpack 'patch-terminal-switch + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "greetd/src/server.rs" + (("switch: true,") + "switch: false,")))) + (delete 'package) + (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) + (mkdir-p man1) + (mkdir-p man5) + (mkdir-p man7) + (with-directory-excursion "man" + (system "scdoc < greetd-1.scd > greetd.1") + (system "scdoc < greetd-5.scd > greetd.5") + (system "scdoc < greetd-ipc-7.scd > greetd-ipc.7") + (system "scdoc < agreety-1.scd > agreety.1")) + (install-file "man/greetd.1" man1) + (install-file "man/greetd.5" man5) + (install-file "man/greetd-ipc.7" man7) + (install-file "man/agreety.1" man1) + #t)))))) + (native-inputs + `(("linux-pam" ,linux-pam) + ("scdoc" ,scdoc))) + (synopsis + "greetd is a minimal and flexible login manager daemon +that makes no assumptions about what you want to launch.") + (description + "greetd is a minimal and flexible login manager daemon +that makes no assumptions about what you want to launch.") + (license license:gpl3+))) + (define-public packagekit (package (name "packagekit") From patchwork Tue Aug 10 20:07:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32006 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 DA8A827BC82; Tue, 10 Aug 2021 21:09: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 7836627BC78 for ; Tue, 10 Aug 2021 21:09:27 +0100 (BST) Received: from localhost ([::1]:52426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDY3y-0000w0-I7 for patchwork@mira.cbaines.net; Tue, 10 Aug 2021 16:09:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDY3b-0000qK-NR for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49347) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDY3b-0007D8-GJ for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDY3b-0007C5-A3 for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v2 4/7] gnu: admin: Add greetd-pam-mount Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Aug 2021 20:09: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.162862611327579 (code B ref 49969); Tue, 10 Aug 2021 20:09:03 +0000 Received: (at 49969) by debbugs.gnu.org; 10 Aug 2021 20:08:33 +0000 Received: from localhost ([127.0.0.1]:60884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY32-0007AZ-RR for submit@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:33 -0400 Received: from mail-ej1-f53.google.com ([209.85.218.53]:36567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY2q-00079M-Bh for 49969@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:22 -0400 Received: by mail-ej1-f53.google.com with SMTP id o23so4489450ejc.3 for <49969@debbugs.gnu.org>; Tue, 10 Aug 2021 13:08: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=Ji/0u8o52Eleku7bBaveyVCcBuSY/EtVjU0+md9XL9M=; b=bCnXt6VTR4bU/JzOo5shBVRbenRt//2ZsiiHiW5edoBO9LH+vKo3WB4AHqfkiCbuyn d4fisI6f2UfSRX90/27qrOdp5yibJTc0cytiteCqFZ4fa4aDI5SXhQzVu+Lxvo0ml9c3 gIaedP3YO7VVJPJPEXFEZkWgbT2fgaPFGQTE7dk9cApEVc/wlzEsITRO0fkZdEekLVwN ujvvtBAiXLPFpw9LPIwLpVcyoxYO8VEj1zxONuyF3ij2CsRVzgbHoNXY42gNPbYKxBsE peMZ9YWpA5ef0Hh63X2JZi+sIVKOZeDkpl6FTdqERnJgJoSBRDT9FXhJMTsk8jnMUPO2 xwLw== 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=Ji/0u8o52Eleku7bBaveyVCcBuSY/EtVjU0+md9XL9M=; b=tz3S58nz+tsF6alcKMNJjWmMdSBnrLfRWlra42TMaXokfVRil3fzCHM4eOX0vz2d0L MiqojPqaYmgOjEJJ9k24TY5SLSAU/BJ4IKg+wV7VDD9uzi2DY0czcuYAXrtSh/L/iY9i vIv9waFmDKS2sVaSzEI+lPOLxS/45AgfhsV9GL1l44bSMQCz5OYOwU5HB7vAsQx08hES R1SgDcZmrA2EsXVWmjBk6susei5tHAzIFL7CiqoOpCJFt383ui3mof3JU0jDA/7fcsMD fNZRVkV1Z19ytzgOoGaqxxgYV4qBjvxH02B3oo3V2YZazWGguLbUxS+mKQt88QFsxH71 T5AQ== X-Gm-Message-State: AOAM532M5Y5vII3q7WMGIf1HnLUZhCW5FTiNGXXUXSf2vDB96ix2akiG zNI2XwB2yixZcSRWaEx9nXTz8blSpEGUDw== X-Google-Smtp-Source: ABdhPJyTI+oEpR2zmYGh3dU+7fdN4xJIai2bm9DrYP4Rb5kb62Oo3CD4se/kgbUfilHHSdc9uzCACA== X-Received: by 2002:a17:907:3e05:: with SMTP id hp5mr205123ejc.527.1628626090555; Tue, 10 Aug 2021 13:08:10 -0700 (PDT) Received: from localhost.localdomain ([31.142.54.188]) by smtp.gmail.com with ESMTPSA id qa34sm7247582ejc.120.2021.08.10.13.08.09 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 13:08:10 -0700 (PDT) From: muradm Date: Tue, 10 Aug 2021 23:07:53 +0300 Message-Id: <20210810200756.9581-4-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810193626.9186-1-mail@muradm.net> References: <20210810193626.9186-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 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. * gnu/packages/admin.scm (greetd-pam-mount): Add greetd-pam-mount --- gnu/packages/admin.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index eda269f148..e805b219c5 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,25 @@ 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"))) + (define-public jc (package (name "jc") From patchwork Tue Aug 10 20:07:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32008 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 4BB4E27BC82; Tue, 10 Aug 2021 21:09: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 A437F27BC78 for ; Tue, 10 Aug 2021 21:09:39 +0100 (BST) Received: from localhost ([::1]:53176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDY4A-0001SZ-OA for patchwork@mira.cbaines.net; Tue, 10 Aug 2021 16:09:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDY3c-0000qh-0X for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDY3b-0007DU-Qg for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDY3b-0007CD-MJ for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v2 5/7] gnu: desktop: Add seatd-service-type Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Aug 2021 20:09: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.162862611727590 (code B ref 49969); Tue, 10 Aug 2021 20:09:03 +0000 Received: (at 49969) by debbugs.gnu.org; 10 Aug 2021 20:08:37 +0000 Received: from localhost ([127.0.0.1]:60886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY37-0007Am-AZ for submit@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:37 -0400 Received: from mail-ej1-f46.google.com ([209.85.218.46]:46818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY2r-00079P-U7 for 49969@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:22 -0400 Received: by mail-ej1-f46.google.com with SMTP id gs8so37607069ejc.13 for <49969@debbugs.gnu.org>; Tue, 10 Aug 2021 13:08: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=JLAQyW2C1YP3WI4eDDJWM2Ywvm62IDNoDCygivZzhz8=; b=eAIEYM6EOSMAj7XFyPpkzpxVPA7DqQ5PawhG+rrOGKq9kM5MYfxzUBrO/hwfAPUxvq Xz5CfnjSnqojX7YyOBli87KnneMtHBRux7uY2Iiwb4XczfPw/qvY1tGfd24RVObSZ5hC CcQ+ueHPZGCIOI0sLV5dLOUAsRDgJ4UAPfZ/NSdurW7wCiwl/W6IINHzMQwLN/m1pUZk gZ5Osee4RotflMqUDKSmp96jyqU3Szzq9hwvHuz1YGPEMm03MPBnWwu17m72e6gugLQN 0g8IHgxLadifNKh9sJKwZ0MaIjUtNnewaZv2il9AvK4zgh+1T9oS1/7c2syLV/FUVVlC u1ag== 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=JLAQyW2C1YP3WI4eDDJWM2Ywvm62IDNoDCygivZzhz8=; b=rPlMNqNDhPF5Z9uERl+XDKqwNnIc8TbBx4gyRrt1SNFdC901k6ptfySak1fFfv2fwd 5en0H+RtfezMPv9QPngWF7mh1liW4KsGDHGDIsD77ctLZEcS3Bp9l2oQEaebU22XIT7/ n0V9Sv2PI0THGu4vN314WMVv/TX3uy7E2I4kstrFNHtgzAMmY4Kdoif7QOP9GlpufeSH tzWdmU39o8SjseagE0whesGLwMbZIXkEzOxWSZYq/05X6xV3lAiToBHMEDJdHoC6124q 54uXaGA3Ymj71qsDMOq2CvWdqG/r7MpGM2IIzTn7f1sKl43gjeE0L8fQnqpZ6uDVm8oq WPvQ== X-Gm-Message-State: AOAM531DZj7faKgF2RY4kpQuf8vbnhPeFCqdnccaND+OMswPkMFYHJlm De7Cp4271hZO+C3NudPu32BG4XKlWMVFjg== X-Google-Smtp-Source: ABdhPJxWwHfbi7w/CV1LGrv9rsNKOqTF+f4R4F9QlaUdlI8HOwZqnfds6ltRMWljpk0uLgizXeNxeA== X-Received: by 2002:a17:906:b09:: with SMTP id u9mr247806ejg.496.1628626092089; Tue, 10 Aug 2021 13:08:12 -0700 (PDT) Received: from localhost.localdomain ([31.142.54.188]) by smtp.gmail.com with ESMTPSA id qa34sm7247582ejc.120.2021.08.10.13.08.10 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 13:08:11 -0700 (PDT) From: muradm Date: Tue, 10 Aug 2021 23:07:54 +0300 Message-Id: <20210810200756.9581-5-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810193626.9186-1-mail@muradm.net> References: <20210810193626.9186-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 A seat management daemon, that does everything it needs to do. Nothing more, nothing less. Depends only on libc. * gnu/services/desktop.scm: Add seatd-service-type --- gnu/services/desktop.scm | 59 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 64d0e85301..bfba9bccec 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,57 @@ 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/socket")) + (loglevel seatd-loglevel (default "error"))) + +(define (seatd-shepherd-service config) + (list (shepherd-service + (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) + (extensions + (list + (service-extension session-environment-service-type + seatd-environment) + ;; TODO: once cgroups is separate dependency + ;; we should not mount it here + (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 Tue Aug 10 20:07:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32007 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 35C5B27BC78; Tue, 10 Aug 2021 21:09: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 87A3027BC78 for ; Tue, 10 Aug 2021 21:09:38 +0100 (BST) Received: from localhost ([::1]:53084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDY49-0001Oy-Jq for patchwork@mira.cbaines.net; Tue, 10 Aug 2021 16:09:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDY3d-0000uH-Mc for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49350) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDY3d-0007EV-Fd for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDY3c-0007CR-GV for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v2 6/7] gnu: desktop: Add greetd-service-type Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Aug 2021 20:09: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.162862612227607 (code B ref 49969); Tue, 10 Aug 2021 20:09:04 +0000 Received: (at 49969) by debbugs.gnu.org; 10 Aug 2021 20:08:42 +0000 Received: from localhost ([127.0.0.1]:60890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY3C-0007B5-5j for submit@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:42 -0400 Received: from mail-ed1-f48.google.com ([209.85.208.48]:35341) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY2t-00079W-QH for 49969@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:23 -0400 Received: by mail-ed1-f48.google.com with SMTP id cf5so32002032edb.2 for <49969@debbugs.gnu.org>; Tue, 10 Aug 2021 13:08:19 -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=cAWqjx1luy/LK+TvIV8A4Hm5Au/ElAxpxaRdBE/u1pc=; b=0TqpGzujv8FQmG0s003Zq+1rDbGzcqnBbJmMAwR7+goeK93QJsfBNrrhYPvV9v7Gk+ aD+G/yJY3761/yaB5HtAI6SYVawaOYazv6wk39TEEV2YtlieAVFlXtzBQ7RB/CpLaK+I XuF0FJ0Tg5XQ4WSnori7FxAaA+u8Of5YFcgEXWQCTMrH7aPOREuj4PcAeVJtFBQARo7r Cb3qsA+oAZIz1C7WVakpU6vxx99TnafeW7pgn9+FFRD+TfpCkikUu6/TB0HTIKVenv2p hLE84RG8DnHsLXdL/ijTuuFQkDKCJuuCXEETmXbcepHkJDD+jgKv+TBfFSP0mP3lid9R 4bYA== 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=cAWqjx1luy/LK+TvIV8A4Hm5Au/ElAxpxaRdBE/u1pc=; b=RRoS3StvQHUiBSzdtotuL1wXp4BRdEwoqChY+V9Yk8DOr31B6z5aPukji5fGjWCbqT 6fRRutzat6B/qmHImxMvX/++j5dW2W9jRgHQyRZrP/o4DIVNOiGNQvqVWEuxbszP8tg+ lc9Zhe+pQMGFV7u7ig1wSzaCIcfrbhe/JtkDd41Tn3zkyVpNodif+Scf7OiILdZmKEo0 LpgKVMPMuwUVyTY+1KRUZFQTTelSgaZiJ6g+C1Y1N0OdABVPZazpi8AE76NgiBBliGoi e3VNSPs2PR/dPtGzEsVUuQQ6xzRZ/GMjcJ5c3WKLQwaEFIO3/5WWkWVshRvpf89ymxgf 8sag== X-Gm-Message-State: AOAM531HPEUNXilRl6F+0fwRxiOcPOaKJU7KnhrFYc28TJWSGbKep69q CrcLfER8bTcGkqPwS9rl08BGIgmggHx1eQ== X-Google-Smtp-Source: ABdhPJz42R/qinbZemqQUC1kxn0L9ZI92y6MqWOkqfeRyyT4+LcZscaCiG5Ey0W6ztSwlc7B+vnEow== X-Received: by 2002:a05:6402:39a:: with SMTP id o26mr4695884edv.64.1628626093759; Tue, 10 Aug 2021 13:08:13 -0700 (PDT) Received: from localhost.localdomain ([31.142.54.188]) by smtp.gmail.com with ESMTPSA id qa34sm7247582ejc.120.2021.08.10.13.08.12 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 13:08:13 -0700 (PDT) From: muradm Date: Tue, 10 Aug 2021 23:07:55 +0300 Message-Id: <20210810200756.9581-6-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810193626.9186-1-mail@muradm.net> References: <20210810193626.9186-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 greetd is a minimal and flexible login manager daemon that makes no assumptions about what you want to launch. Currently, only agreety configuration is provided. * gnu/services/desktop.scm: Add greetd-service-type --- gnu/services/desktop.scm | 210 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 210 insertions(+) diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index bfba9bccec..be6bb0a86f 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) @@ -1239,6 +1240,215 @@ or setting its password with passwd."))) 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 popen) (ice-9 rdelim) (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")) + (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)) + (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" + "[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") (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 + (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) + (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 Tue Aug 10 20:07:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32009 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 3FB1D27BC82; Tue, 10 Aug 2021 21:09: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 A746127BC78 for ; Tue, 10 Aug 2021 21:09:40 +0100 (BST) Received: from localhost ([::1]:53234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDY4B-0001Uq-NJ for patchwork@mira.cbaines.net; Tue, 10 Aug 2021 16:09:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDY3c-0000rB-E6 for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDY3c-0007Dc-7u for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDY3c-0007CK-2y for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v2 7/7] 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: Tue, 10 Aug 2021 20:09: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.162862611827598 (code B ref 49969); Tue, 10 Aug 2021 20:09:04 +0000 Received: (at 49969) by debbugs.gnu.org; 10 Aug 2021 20:08:38 +0000 Received: from localhost ([127.0.0.1]:60888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY3B-0007Ax-Mh for submit@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:38 -0400 Received: from mail-ej1-f54.google.com ([209.85.218.54]:46838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY2v-00079g-CM for 49969@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:22 -0400 Received: by mail-ej1-f54.google.com with SMTP id gs8so37607329ejc.13 for <49969@debbugs.gnu.org>; Tue, 10 Aug 2021 13:08: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=UKAcPMRx55FH/riFmKry6ODo8gDXhvsR3WcroQQur7Y=; b=LmxdYY5IaXChowF2PMAB2ugRmwb/eJRMGHNENcIi7YGkuxs5xWxOLwfAqzf7nyknlc C4FeGOYyu3+vJLaG/aeiEhAUlipmpk+crqadQYZ7FBASBHlaXLBLpeewYVK4qI/oT7jz XuTz3XuX25kuP5YY0hWoNbfrqSYVIgQNnDJAglrP1n8vR6Hmo7AeNN63mlNQEZYGaNPU ib0/Xnje9FRYBkV1Zizeqfr53qb48nLfHhszWDSeimvqandJm5CwQPIJz/IP2c3Dn90d eSZ8Q7z1ocW942MgdN1Xs1x98pjEkdJGI0dhqDK1I1iOzDUIj/z4jz0dTXPi4WNsriHO f5Jg== 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=UKAcPMRx55FH/riFmKry6ODo8gDXhvsR3WcroQQur7Y=; b=fgQIMpaNx0lPN7gPQmgKw275pkELMdNsMCpOtsB9iybs3mt7IberJdiv0feUyTsMiV EfADUMg5ArNqtaXBZtcP3vBbJe2vbBNir8q3wStDBHmJkjbbCa0tSGVQiRTuy052zSWw 2zf5cTSW18nCKcZGXbkMJdXJoyh5uEmPQd60bhjUpZREh+dFvalFqrjOV+7Rp8eBnMLE iJMdmc+S22VJ7WaBCiSIAArKYdm4IwKeLOPNq0gSEVmGdo6TaDRYyEQvWiq83pq2wloR aa5tJ3yxgAzgo/y89wzEOvHgunYJt2IjahoK6AiWUe5dC+lTidWjyj8vQz10q+eCMdu6 KM7w== X-Gm-Message-State: AOAM5339CiQeQxKaMO/QiKm+hlqc+HWy5V1YfUbzgGcVDEY/EMNBJ3n8 LZ/EIHQ8x+iBhDomwFkBO8aBWmlsH21a+g== X-Google-Smtp-Source: ABdhPJwgxxGWxR/tFtgnTOdUdGjCY9cIn1xDP4pd5Ule+z4A80/6ngCDvGGCEg5b8IFnifjgz7gSQw== X-Received: by 2002:a17:906:9c84:: with SMTP id fj4mr262708ejc.356.1628626095408; Tue, 10 Aug 2021 13:08:15 -0700 (PDT) Received: from localhost.localdomain ([31.142.54.188]) by smtp.gmail.com with ESMTPSA id qa34sm7247582ejc.120.2021.08.10.13.08.14 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 13:08:14 -0700 (PDT) From: muradm Date: Tue, 10 Aug 2021 23:07:56 +0300 Message-Id: <20210810200756.9581-7-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810193626.9186-1-mail@muradm.net> References: <20210810193626.9186-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 | 183 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 183 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 4eb5324b51..586b879608 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 @@ -19694,6 +19695,188 @@ 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 + (greetd-terminal-configuration (terminal-vt "1")) + (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 %desktop-services + ;; seatd/greetd combination can replace these + (delete elogind-service-type) + (delete agetty-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/socket"}) +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{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