unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Josselin Poiret via Guix-patches via <guix-patches@gnu.org>
To: lgcoelho@disroot.org, 68012@debbugs.gnu.org
Subject: [bug#68012] [PATCH] thinkfan-service-type: Place config-file in /etc/thinkfan.conf if file-like
Date: Sat, 13 Jan 2024 17:30:23 +0100	[thread overview]
Message-ID: <87il3xgpr4.fsf@jpoiret.xyz> (raw)
In-Reply-To: <1e749af5b479cbc13f70c2ce64121682@disroot.org>

[-- Attachment #1: Type: text/plain, Size: 537 bytes --]


lgcoelho--- via Guix-patches via <guix-patches@gnu.org> writes:

> +(define thinkfan-activation
> +  (match-record-lambda <thinkfan-configuration>
> +    (config-file)
> +    (when (file-like? config-file)
> +      (with-imported-modules '((guix build utils))
> +        #~(begin
> +            (use-modules (guix build utils))
> +            (copy-file #$config-file "/etc/thinkfan.conf"))))))
> +

This is not needed as you already specify the config file to use to
thinkfan with the -c option.

-- 
Josselin Poiret

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 682 bytes --]

  reply	other threads:[~2024-01-13 16:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-24 18:53 [bug#68012] [PATCH] services: Add thinkfan service lgcoelho--- via Guix-patches via
2023-12-25 23:59 ` [bug#68012] [PATCH] thinkfan-service-type: Place config-file in /etc/thinkfan.conf if file-like lgcoelho--- via Guix-patches via
2024-01-13 16:30   ` Josselin Poiret via Guix-patches via [this message]
2023-12-27 17:04 ` [bug#68012] [PATCH] thinkfan-service-type: Add thinkfan entry to thinkfan-configuration lgcoelho--- via Guix-patches via
2024-01-13 16:31   ` Josselin Poiret via Guix-patches via
2024-01-13 16:29 ` [bug#68012] [PATCH] services: Add thinkfan service Josselin Poiret via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87il3xgpr4.fsf@jpoiret.xyz \
    --to=guix-patches@gnu.org \
    --cc=68012@debbugs.gnu.org \
    --cc=dev@jpoiret.xyz \
    --cc=lgcoelho@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).