From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aOV6Nwgo12W4KAAA62LTzQ:P1 (envelope-from ) for ; Thu, 22 Feb 2024 11:55:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id aOV6Nwgo12W4KAAA62LTzQ (envelope-from ) for ; Thu, 22 Feb 2024 11:55:05 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=landt.email header.s=MBO0001 header.b=mois4uwy; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=landt.email ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708599304; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SVnJEA6pF01tt00A9yrBUzGBsXWBxBCrT8DN/pZccxc=; b=QGMBbbOPPcLq3ZdwYjqmlFXKr9egsh6BCfGCQckJypvd6yaQnsuNvGqzlIo0zzV4BEPYvL pxWACA0+B0IA2+fI9S5Pr0zeNKgTE+uZWW+ZXX1AHxsXyaoITA8TmWLGwdzxTfHneKAwsH TZ4khY8ZGE1Ps8vcCT8kL+WjsHtLAr7XsIclsWSNvB5HfbFmBGwszagECjhjJJ5vIhKmmn mcZ25YRumT0slJqRJdZjGe/vdD19vQTGyUZ81VigHs3rwiVhnTJkhCSz1xtFbsGhjyUiL+ pG51uFSCKDJE1VQLTiwyBhm/xm0mt+KovF5SZaBG9E7lcp8ArfXsuFJDSyxu1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=landt.email header.s=MBO0001 header.b=mois4uwy; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=landt.email ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708599304; a=rsa-sha256; cv=none; b=jO7LiYA0IOPGWoEeMPiSfdywo6IsaG8vELMeBpl5opo1XPNl6pT0KMDCqZJyjQGoA33nja uqe7PzFdAcn1Nj7F525tEWYgjzzF22C/4PnRNz6Ltq/0OQWdmw//O9yMHqLC8EkJ8RJpDv NsWDEaJr1O9Em4EHctUWc+fcHFWSND1Fs2RUxXkFrSQMiaDUu+mfm5Tt9qwaeBUgZgFOaC YFHv/pCqBeSHC5hxF+EeTEm5fHqzCmrqVl4Tqygci9lJKbuwVfq7Fbz04RL0zRSSs+wNww FrtRhQXnbdRnEyrb5W8Bt5HlqaVQO8ABrAzMZ0ud2stp39+/UMDmbGgr7qFxqg== 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 C9EF235AAE for ; Thu, 22 Feb 2024 11:55:04 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rd6iu-00088a-Eh; Thu, 22 Feb 2024 05:54:40 -0500 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 1rd6is-00088P-Nj for help-guix@gnu.org; Thu, 22 Feb 2024 05:54:39 -0500 Received: from mout-p-102.mailbox.org ([80.241.56.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rd6iq-0007fE-Nd for help-guix@gnu.org; Thu, 22 Feb 2024 05:54:38 -0500 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4TgVQF6Jt9z9sp4; Thu, 22 Feb 2024 11:54:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landt.email; s=MBO0001; t=1708599269; 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: in-reply-to:in-reply-to:references:references; bh=SVnJEA6pF01tt00A9yrBUzGBsXWBxBCrT8DN/pZccxc=; b=mois4uwys1OlzxbaiJZQaHePeNENvzb6TLn3z03IwUw33F3baPIeNH4QbLPHxhp2eOnKhM vPXIOoNzePMYgUq3NXnTaGvDp2lQ4eFUXTnMKIXh7q6K5L94YmOUgsQrNlalBbAEThC+Eq sR8fEzLADqVuRpZ27Ey7h8xMKM2BOlZaJ4eCk10HChwbpvScbI0l7Z/m6zNNUY1xjdJlP0 jDu7mG9qotU+eWgeEhqlEdOe6fzWX9S9S2CN14iMBuWYYB8nthWmTYDima9MfAywMV6qQg uoDNOQpnxq1Y1JKihsklP2GHRktgongCU2nT4Zu2077TzHQxufqRdbtQbzD5Lg== Date: Thu, 22 Feb 2024 11:54:29 +0100 (CET) From: Nils Landt To: Rodrigo Morales , help-guix@gnu.org Message-ID: <704162954.134516.1708599269182@office.mailbox.org> In-Reply-To: References: Subject: Re: [question] How to start systemd services installed by packages in Ubuntu? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal Received-SPF: pass client-ip=80.241.56.152; envelope-from=nils@landt.email; helo=mout-p-102.mailbox.org 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.62 X-Spam-Score: -8.62 X-Migadu-Queue-Id: C9EF235AAE X-TUID: pW4JSOTeg9t5 > Rodrigo Morales hat am 22.02.2024 03:17 CET geschrieben: > > 1. Is using systemd user services for packages, that are installed > through =guix package -i=, the way how daemons are intended to be > started in Ubuntu? I'm guessing the expected usage is to write a shepherd service. Looks to me like almost everyone using Guix uses shepherd / mcron, not systemd. I hacked something together for systemd, but haven't published it. Also, it looks like you're not using Guix home, which I think is the best way to use Guix on a foreign distro. So I suggest looking into that: https://guix.gnu.org/manual/en/html_node/Home-Configuration.html > 2. Is it possible to make systemd in Ubuntu aware that there might be > user services in =~/.guix-profile/lib/systemd/user=? I want to do > this in order to avoid the manual task of creating a symbolic link > to the directory that is actually ser. Yes. In ~/.config/systemd/user.conf (file probably doesn't exist yet): [Manager] ManagerEnvironment="XDG_DATA_DIRS=%h/.guix-profile/lib" In case the %h doesn't work for you (depends on systemd version), write /home/rodrigo (or whatever) instead. After restarting the user session, it should pick up the unit files. You can check the paths that are checked for user unit files with: systemctl --user show -p UnitPath --value and of course, the following: systemctl --user list-unit-files "thunar*" > Ideally, I want to install a > package and just execute =systemctl --user start <>=. Just making sure, but are you sure you want to start, and not enable, or enable --now?