From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id a5AUIUPuG19xRAAA0tVLHw (envelope-from ) for ; Sat, 25 Jul 2020 08:33:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id AJKNHEPuG1+DbQAA1q6Kng (envelope-from ) for ; Sat, 25 Jul 2020 08:33:07 +0000 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 A856194051E for ; Sat, 25 Jul 2020 08:33:06 +0000 (UTC) Received: from localhost ([::1]:49812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzFc9-0003SZ-BR for larch@yhetil.org; Sat, 25 Jul 2020 04:33:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzFc6-0003SQ-8h for guix-patches@gnu.org; Sat, 25 Jul 2020 04:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzFc5-0005Aq-W0 for guix-patches@gnu.org; Sat, 25 Jul 2020 04:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jzFc5-0007qS-T3 for guix-patches@gnu.org; Sat, 25 Jul 2020 04:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42489] [PATCH] services: nix: Provide nix commands. Resent-From: Peng Mei Yu Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Jul 2020 08:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42489 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Oleg Pykhalov Cc: 42489@debbugs.gnu.org Received: via spool by 42489-submit@debbugs.gnu.org id=B42489.159566592530081 (code B ref 42489); Sat, 25 Jul 2020 08:33:01 +0000 Received: (at 42489) by debbugs.gnu.org; 25 Jul 2020 08:32:05 +0000 Received: from localhost ([127.0.0.1]:49314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzFbA-0007p7-SP for submit@debbugs.gnu.org; Sat, 25 Jul 2020 04:32:05 -0400 Received: from mx1.riseup.net ([198.252.153.129]:49630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzFb5-0007od-J7 for 42489@debbugs.gnu.org; Sat, 25 Jul 2020 04:32:03 -0400 Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4BDK724r6mzDsyw; Sat, 25 Jul 2020 01:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1595665918; bh=uK+7k0rd/DAK3rR4lnnrQyUEcYRQ/S7yqdAD06siYVw=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=DfXFd+4Jy5nv7mTGLBTUiVEaZ6ebnIKmT5dPHYlQjSnQZ6wuDabxYNE12kHcqeAcN IX9+v7DEd5trZcrZJBON+pU5yfUFmWVndiqrTpDKS/02r0J7vnZFV9E7zunSzrtpn1 gI0/9qPBok0htgeEVt1QmlOuDt2ozn0LcyQOJWlE= X-Riseup-User-ID: 81927C93CB565DD5D28D021E357D62EFA63DA2202ED27D0CB4FB51834471A635 Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 4BDK7118X7zJmhk; Sat, 25 Jul 2020 01:31:56 -0700 (PDT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id fc5464d2; Sat, 25 Jul 2020 08:31:45 +0000 (UTC) References: <20200723092413.21014-1-i@pengmeiyu.com> <87tuxxq7fr.fsf@gmail.com> From: Peng Mei Yu In-reply-to: <87tuxxq7fr.fsf@gmail.com> Date: Sat, 25 Jul 2020 16:31:45 +0800 Message-ID: <878sf8807i.fsf@pengmeiyu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=riseup.net header.s=squak header.b=DfXFd+4J; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: Mmd/Cf0dICVm Hi, Oleg Pykhalov writes: >> @@ -134,7 +135,9 @@ GID." >> (extensions >> (list (service-extension shepherd-root-service-type nix-shepherd-se= rvice) >> (service-extension account-service-type nix-accounts) >> - (service-extension activation-service-type nix-activation))) >> + (service-extension activation-service-type nix-activation) >> + (service-extension profile-service-type >> + (compose list nix-configuration-package)))) >> (description "Run the Nix daemon.") >> (default-value (nix-configuration)))) > > I don't understand what you trying to archive. > > Do you want to run `/gnu/store/=E2=80=A6nix=E2=80=A6/bin/nix-daemon` with= flags, like > =E2=80=98--debug=E2=80=99? It's better to add =E2=80=98extra-options=E2= =80=99 to =E2=80=98=E2=80=99 > record and use it in =E2=80=98nix-shepherd-service=E2=80=99. No. The nix-service is useless without commands like nix, nix-env, nix-shell, etc. I think it's a standard that a guix service should provide necessary commands in order to use that service. >> @@ -35,7 +35,8 @@ >> #:use-module (ice-9 match) >> #:use-module (ice-9 format) >> #:use-module (guix modules) >> - #:export (nix-service-type)) >> + #:export (nix-configuration >> + nix-service-type)) > > OK, but also export =E2=80=98nix-configuration?=E2=80=99. That's fine. All I want is to be able to customize the "extra-config". Thanks.