From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QNpsDyEnH2TnkAAASxT56A (envelope-from ) for ; Sat, 25 Mar 2023 17:53:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KEVHDyEnH2QEWQAAauVa8A (envelope-from ) for ; Sat, 25 Mar 2023 17:53:53 +0100 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 01BB5EF8B for ; Sat, 25 Mar 2023 17:53:51 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=bioneland.org header.s=gm1 header.b=Ch9SNTyC; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=bioneland.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679763232; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=yF69WNgHduubT6L9g7LYuxzDy4Bg0BITJeKP8jKBhdA=; b=BwKHNy5LOpAu0VuDEjnEsjFLiCFvRBqAnNHwF9W4Z+VrJTDDY/BuTe5JkuvkM6SznHPV/m zgZJPEb/WZ4gtBs9m9xE3p3yx4bozHE6+Heem2jukaabM410nenPDEWmrx9Gk+8RMBj80T GWQ4BJrnZxQIjyA8sAkiZfdUeZ94lIbrTVnJn5OEHX7Qmp0HaCEY3nbUDtdbCxa1fVnliN EIWDe5or1niqhBKpiAJSsGYc8bXOsgAgyBvd175+BoIBzR6VrMUxCBudLniwhHIvPI1wPa v9H7fneRI4BWy2v0WuhvC5z6LeCHMHE3hZivqeSV45BEXFRnAauMyHsByNZklw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679763232; a=rsa-sha256; cv=none; b=GE4spwMLBzMBZ9aT9GMy9sYvSg1RowCA/hLPt7wCI/rutINc7IDLDmV4Oz+LsjSaGxZ8V2 z+mDwKPdx3aGeBRYxX2amS4wKFW5Lgcwh36mHcQbElyOtSjizA1ovqrDt3QPrIX1FkzIh/ kofrsXGXsxPiFgyJHaDusMd2eDqGPRboBcyt1rYp3CI5k3TjRQW44Bc9HMWdBot1P4yn+I OnfBVm5qofpPIWbyNrSzw0za9r3MkqPK+/W7CQfEoKEQLDku3h4WAeZOGe3xLX0QszJZGr dz6Ui3z8wl+3Y8+bDXCUBTMOxaZdEiqZpce1+oE93582OFy5w7ProUMDi0kfGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=bioneland.org header.s=gm1 header.b=Ch9SNTyC; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=bioneland.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pg793-0006HK-Mp; Sat, 25 Mar 2023 12:53:33 -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 1pg791-0006Gm-7h for guix-devel@gnu.org; Sat, 25 Mar 2023 12:53:31 -0400 Received: from relay7-d.mail.gandi.net ([2001:4b98:dc4:8::227]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pg78y-0006ck-B1 for guix-devel@gnu.org; Sat, 25 Mar 2023 12:53:29 -0400 Received: (Authenticated sender: tanguy@bioneland.org) by mail.gandi.net (Postfix) with ESMTPSA id 184F020003 for ; Sat, 25 Mar 2023 16:53:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bioneland.org; s=gm1; t=1679763204; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yF69WNgHduubT6L9g7LYuxzDy4Bg0BITJeKP8jKBhdA=; b=Ch9SNTyCfS4rmqbjt0hLJj1IwpuTPgkcK+wvXI496dYvrNos7NYJxKxcQaCuTTl4MePkW5 LnbPn5FTUiJ1o754jBwW+xX/QCyA2DFILcsweSWe5WOr+AJkPd5smTPamWrpcOV/weDt4c qOO0mU8QNlaMCf02wlbmRUNA1ElMXquEU7oaT5FWkKnvFAKfFMj+HWFjZDthtE9i5rlXc/ /tdm30OBkgJ66yhQvPeG9eQUdPsBvvzZmF8UKT2o55yNbvK6dbPH5+9OfaKys8GFv5r2Mt 41MH76RS2fC8BCE07UXC/e/oDlh4cBhEIgR2WW9WoJM6zekj9n4sX9pCP+GvGA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tanguy LE CARROUR To: guix-devel@gnu.org Subject: Contributing Guix Home services Date: Sat, 25 Mar 2023 17:53:23 +0100 Message-ID: <167976320326.6475.15093558555393216956@localhost> User-Agent: alot/0.10 Received-SPF: pass client-ip=2001:4b98:dc4:8::227; envelope-from=tanguy@bioneland.org; helo=relay7-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 01BB5EF8B X-Spam-Score: -7.50 X-Migadu-Spam-Score: -7.50 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: P/N8ypJE9ITq Hi Guix, For the past few=E2=80=A6 months (!?) I've been working on migrating from git+stow to a proper Guix Home setup. It's been painful, but I've learned a lot along the way. There's still a lot to be done =E2=80=94and a lot to learn!=E2=80=94, but I wanted to know what were the requirements for a home service to be accepted in master? I've written home services for the following programs: afew, bat, beets, du= nst, gnupg, imv, khal, khard, mpd, msmtp, nowty, profanity, swappy, tig, tor, transmission, user-dirs, vdirsyncer, wofi, zathura. Others are on the way. For the time being, they are available on my channel: . Most of them are about writing configuration files. But I've limited myself to the configuration options I was actually using. So they are far from being complete. But it's kind of cool to be able to write: ```scheme (define move-left "t") (define move-up "s") (define move-down "r") (define move-right "n") ;; [=E2=80=A6] (service home-imv-service-type (home-imv-configuration (prev move-left) (next move-right) (zoom-in move-up) (zoom-out move-down))) (service home-khal-service-type (home-khal-configuration (up move-up) (down move-down) (left move-left) (right move-right))) ``` My main concern now is to figure out how to implement complexe configurations to be able to write things like: ```scheme (service home-khal-service-type (home-khal-configuration (calendars (list (khal-calendar (name "my_calendar") (path "~/.calendars/xxxx/") (color "light gray")))))) (service home-khard-service-type (home-khard-configuration (addressbooks (list (khard-addresbook (name "my_contact") (path "~/.contacts/xxxx/")))))) (service home-msmtp-service-type (home-msmtp-configuration (default-account "t@bl") (accounts (list (msmtp-account (name "t@bl") (host "mail.domain.tld") (port 587) (user "tanguy@bioneland.net") (from "tanguy@bioneland.net")))))) ``` I'm not sure how to make `define-configuration` accept complexe structures. When I look at `gnu/home/services/ssh.scm`, it seems to be doing the other = way around and define the configuration with `define-record-type` and "put" the "configuration" inside. Any guidance would be highly appreciated! Best regards, --=20 Tanguy