From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cJGpGOsZvWQUbAEASxT56A (envelope-from ) for ; Sun, 23 Jul 2023 14:15:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sItHGOsZvWQNNwAAauVa8A (envelope-from ) for ; Sun, 23 Jul 2023 14:15:39 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1716C52497 for ; Sun, 23 Jul 2023 14:15:39 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=V8txkez4; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690114539; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jQ9gP8Bh3dQovVyxE/weLC7dE5Jzyhe8swvVjpnObhM=; b=uOv2+yhz3xXhP7Zqny7G+pbXh/Mo7PlHFIN+XkM/sV/QP3mGluguCuwHgVUEZMPEV4pe2w M6YgZRtibvsILKyGZlJLV/tnnNMBSp4LFo/l9TYWtH0q9qFVv95nartkNRa5zGqsu7lIUz +4QhfLJNVPnVftGZ86RNOpduHWaDRaGTL2Dq2sU8yxK5L47joN+1kDr7SJi7Q6FpxXbgMD UgQ96Dq3qthQinfqNLQKBl0RT9IbSkIuJtCjccB7i3MirWH/Q+ga9QA/KaJqz97Qcv3NW8 G/jjLT7hdSyFT31Iod/2t9c0FYd+raBFg/dzFXG2q9dr2A8f+Xv9qCbX/QB7uA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690114539; a=rsa-sha256; cv=none; b=DTwE0nlftlpfZJw0Z2GRJDCxUF60QwdRLgs8AFZNxCSGrK57Mv3+avE40t0POGr62/A6Vd r8SFaoAcSsmexZbbQpRZ7bZWn8z9hZXHtMUtLLLTsnajOJlnVxkVaKtB1Oj2a9UqMYBMWN kL3JTRhieMXMgim5Xk0za/O4vnhur3/4FV45lGXSWbAu7Ct8JD5XYCmKocTziX4O+bCY3W 8gPyRWKFbejXeHaQlesp5kZialGViRwiG/Hz9qxHYE0ref1oDmdXVvgYFEDHV9CU7bB1qn DYTsIUajHuqPsjbVvNRyZFlcr7d5yR+8Z4/x4llIJZa3GOBkeNhrUdAXG4uYuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=V8txkez4; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNXzX-0002Qk-F8; Sun, 23 Jul 2023 08:15:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNXzO-0002Q1-Hr for guix-patches@gnu.org; Sun, 23 Jul 2023 08:15:06 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qNXzO-00014c-9x for guix-patches@gnu.org; Sun, 23 Jul 2023 08:15:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNXzN-0007CP-3t for guix-patches@gnu.org; Sun, 23 Jul 2023 08:15:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64798] [PATCH 209/209] examples: add plasma operating-system example Resent-From: Zheng Junjie <873216071@qq.com> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 23 Jul 2023 12:15:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64798 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64798@debbugs.gnu.org Received: via spool by 64798-submit@debbugs.gnu.org id=B64798.169011446527563 (code B ref 64798); Sun, 23 Jul 2023 12:15:05 +0000 Received: (at 64798) by debbugs.gnu.org; 23 Jul 2023 12:14:25 +0000 Received: from localhost ([127.0.0.1]:38963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNXyi-0007AT-0N for submit@debbugs.gnu.org; Sun, 23 Jul 2023 08:14:24 -0400 Received: from out203-205-221-191.mail.qq.com ([203.205.221.191]:45022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1qNXyQ-00078N-Kq for 64798@debbugs.gnu.org; Sun, 23 Jul 2023 08:14:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1690114438; bh=jQ9gP8Bh3dQovVyxE/weLC7dE5Jzyhe8swvVjpnObhM=; h=From:To:Subject:Date:In-Reply-To:References; b=V8txkez4I5XHr0EHSrT7CNTxLkCKPlAKO3PyyHPkt91wxZwAvvMdUAUzwoPwIik+G EdnbE1iY4z00lquh1tCu6By5mgHK0rEHmfb9oZJgoJCRupWQgKdTCS6Z0LOGJT/qAE UjIJihyav3KpELt+QJOXJT2m2rHAc3D67O5XkZDU= Received: from localhost.localdomain ([111.0.51.236]) by newxmesmtplogicsvrszc5-0.qq.com (NewEsmtp) with SMTP id 37312C61; Sun, 23 Jul 2023 20:13:51 +0800 X-QQ-mid: xmsmtpt1690114437thrdh27l2 Message-ID: X-QQ-XMAILINFO: MyirvGjpKb1jlh22brfiNaT/9BTASxssGf12SFpvYjVH4KPZirwE21l+aUl2Sz aO5Z6BCtbHX22yUI8a2k9qMgrmrcjJuiTeG7fiuRIfpse4XowRzJICwRjBR/Fr2txhQ0xST7WshA nHEMPHN6cxQRfwHgjgvwEQnnxf1EzfOUzhZfOsWv2RxZ8TWGERctyv0jXDLqePbXv1oWEpOmq4I2 pHvHBGxIXY+sybxNvFPpcTn9m698V9ubBGTJ8GqaV5roGmMBAcj7RNX6QLsnmU/LekQdpOq9ctg8 QpArnI7A9oppts2Z4nY1RjIR1Yb4MOT+knRJNjf5srA06z657Qb+NLtgW5NuiGraJevIOa9t0WU3 KooAJcf3YxwLHzZg+emTnJPOHM/nODA1EamlwXS+lr7oWFlJFTTWLIOhEesHY1Hwqgvvv0sGFQsq 8I21dGrFyErcgxCDAyITdrUPbRVwCYQ75/ktt/7m2X+Wh0UtQiAlnvDD4fp2fcGeD/PYhgJr3n7d sQ+su035+jhTbmismrETQ7fBCtHkqe5xlnHP7/c/7jdZh0/b1RovoW6dJBvR2UiVJ7Lnry7In2zK wS0++VVU/40syzul7qgCYkJcOMwKMG/KPZYpQOxqhGwL+z3ghfKxtyPEW641PyKIx/uVp9xxfvKi fgE9Qde17BBWN9TgvNBFVbgqSFQATcqroEEdS5Vyks0UZhNrH65LUFgOunaiCJwLn1K7Kwc6ViwX Vpl4wJjz0aWL5fjZC+jo9fBxqcjUftCiDIIZX6RGVAWkdm0CLZTXfoVQcbpN19PnVcqBLKNwpKLm mt26uA0WxePIntmoMa3SxYPN/0qIPSh4MxxPpy8qsO78qM1P6GGu9/7ytMMcY2OyURnMtmPlaW8C MBx0JQVvUJSHMEciB4Oc7kAXsN/SYEnc/v9O4CfSXDQ8inoDu3Xn8W61yEfgQ7WPXL6hKElTFzMN xln4UQXtvcNzJG7ajeQgGvrUHQ3YTnvi6852Vrws9BC+IKL4h7HsxIEsvLPiDP X-QQ-XMRINFO: NyFYKkN4Ny6FSmKK/uo/jdU= Date: Sun, 23 Jul 2023 16:47:09 +0800 X-OQ-MSGID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Reply-to: Zheng Junjie <873216071@qq.com> X-ACL-Warn: , Zheng Junjie via Guix-patches From: Zheng Junjie via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.16 X-Spam-Score: -6.16 X-Migadu-Queue-Id: 1716C52497 X-Migadu-Scanner: mx1.migadu.com X-TUID: 4KrKtCIK1vFo * gnu/system/examples/plasma.tmpl: New operating-system example. * Makefile.am(EXAMPLES): register it. --- Makefile.am | 1 + gnu/system/examples/plasma.tmpl | 67 +++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 gnu/system/examples/plasma.tmpl diff --git a/Makefile.am b/Makefile.am index d76bfd2522..3f0ebcbf29 100644 --- a/Makefile.am +++ b/Makefile.am @@ -456,6 +456,7 @@ EXAMPLES = \ gnu/system/examples/desktop.tmpl \ gnu/system/examples/lightweight-desktop.tmpl \ gnu/system/examples/docker-image.tmpl \ + gnu/system/examples/plasma.tmpl \ gnu/system/examples/raspberry-pi-64.tmpl \ gnu/system/examples/raspberry-pi-64-nfs-root.tmpl \ gnu/system/examples/vm-image.tmpl diff --git a/gnu/system/examples/plasma.tmpl b/gnu/system/examples/plasma.tmpl new file mode 100644 index 0000000000..3df819a54f --- /dev/null +++ b/gnu/system/examples/plasma.tmpl @@ -0,0 +1,67 @@ +;; This is an operating system configuration template +;; for a "desktop" setup with Plasma. + +(use-modules (gnu) (gnu system nss)) +(use-service-modules desktop sddm xorg ssh) +(use-package-modules certs gnome ssh admin fonts) +(use-package-modules qt xorg tmux linux) + +(operating-system + (host-name "plasma") + (timezone "Asia/Shanghai") + (locale "en_US.utf8") + + ;; Assuming /dev/sdX is the target hard disk, and "my-root" + ;; is the label of the target root file system. + (bootloader (bootloader-configuration + (bootloader grub-bootloader) + (targets (list "/dev/sdX")))) + + (file-systems (cons (file-system + (device "my-root") + (mount-point "/") + (type "ext4")) + %base-file-systems)) + + (users (cons (user-account + (name "plasma") + (password (crypt "plasma" "$6$abc")) + (group "users") + (supplementary-groups '("wheel" "netdev" + "audio" "video"))) + %base-user-accounts)) + + ;; This is where we specify system-wide packages. + (packages (cons* nss-certs ;for HTTPS access + neofetch + htop + tmux + xprop + strace + %base-packages)) + + (services (cons* + ;; for debug + ;; (simple-service + ;; 'add-qt-debug-env + ;; session-environment-service-type + ;; '(("QT_MESSAGE_PATTERN" + ;; . "[[%{time process} %{type}] %{appname}: %{category} %{function} - %{message}]") + ;; ("QT_DEBUG_PLUGINS" . "1") + ;; ("QML_IMPORT_TRACE" . "1"))) + (service openssh-service-type + (openssh-configuration + (openssh openssh-sans-x) + (port-number 2222))) + (service plasma-desktop-service-type) + (service sddm-service-type + (sddm-configuration + (theme "breeze"))) + (modify-services %desktop-services + (delete gdm-service-type)))) + ;; Allow resolution of '.local' host names with mDNS. + (name-service-switch %mdns-host-lookup-nss)) + +;; Local Variables: +;; mode: scheme +;; End: -- 2.41.0