From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uNUvONaVb2CyqwAAgWs5BA (envelope-from ) for ; Fri, 09 Apr 2021 01:46:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yCkOMtaVb2DoBgAAB5/wlQ (envelope-from ) for ; Thu, 08 Apr 2021 23:46:30 +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 514F3216A9 for ; Fri, 9 Apr 2021 01:46:30 +0200 (CEST) Received: from localhost ([::1]:37456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUeM1-0006nz-41 for larch@yhetil.org; Thu, 08 Apr 2021 19:46:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUeLp-0006nq-O4 for help-guix@gnu.org; Thu, 08 Apr 2021 19:46:18 -0400 Received: from knopi.disroot.org ([178.21.23.139]:43792) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUeLm-0003vc-GW for help-guix@gnu.org; Thu, 08 Apr 2021 19:46:17 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 306AA50D75; Fri, 9 Apr 2021 01:46:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id brxvdaY18rvn; Fri, 9 Apr 2021 01:46:09 +0200 (CEST) References: <87a6qag2dh.fsf@disroot.org> <5F18EF49-1BC9-49E3-AEC7-21B7C8361F52@lepiller.eu> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1617925569; bh=MmZd1RKaQC3Vo4313Nxs183bjPeeYdLKKPbfkPujO9k=; h=References:From:To:Cc:Subject:In-reply-to:Date; b=TgChy4b8VRvBDlkEKGUPJKOPKfGynT81U4gDAowY9D/C6nry+rv5WvtAriIm2maoL /lDZTAMD1xB/jJEelsPwSZ435VNeAFI2OX3sxxdYki5ra3ENG9eHdP1h82aHFqgQCe Gq9iKpzV6EqMG5YizvnaqwggxdFq7jYnayuS0bLd3hKjVapFdXjn0I3gANGUJO/tRo VmepQMmFFtMjmnZJO7C/9fXNU5KJmW2wOHtJOw3P9pnYZ4pVkorfZOtqSfEa26/LVz mVaZbGYxtC6nx5Ev+gItAEqIfkmQ1dN8G84uDXw3bkBauPyUBls86ZTg2DznBDs6sF 7oDiroIFJrEKw== From: Bone Baboon To: Julien Lepiller Cc: help-guix@gnu.org Subject: Re: How to create a service for contents of arbitrary file In-reply-to: <5F18EF49-1BC9-49E3-AEC7-21B7C8361F52@lepiller.eu> Date: Thu, 08 Apr 2021 19:46:08 -0400 Message-ID: <874kggfigv.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=bone.baboon@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617925590; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=WTjODr3uK7yxok4usRkezOztyzSJS8tNYA/viaoiUa0=; b=Lki3qEpuAs4hgnYIVMpChbYNITph2W1nkMYLF9ri/2Yd9o5wfxyHVJRRVnuiCrnsqW1Arx jrhBSbaoNZmCa018wWv13mC7RsXhf/kzGpzlGQhDEnLp6kiEbq1r1j4NJWaQDxNQ3RsR8C gtmWjAM538QHMZVddvYFp5wmetYTsc9t3zDCjfWpbRs9KZSKmwVV1VQxqgp/WWtwGh6RdP 54CP7ZVznJWAJcwCrzqSRVBt3IjWPNJfm1HZQQHoQQ0JTRh+4pX3Im/fu+ValSPMErA53W 9Pdtt6LB7JT8si9G1aNvKGw/2tJR/5FfYiImOxynwNbYStG1TU/KW/3mlb8WFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617925590; a=rsa-sha256; cv=none; b=qmI3aKATmdvkakmCY2gtCzSfsfno09gZguHoyNE4SprXCnFlMV3GoHHqtRIqtIALvzqPQW 6AVVnIFaeFAtLODCh4dVeAetAdqJ+N/7Jw+7zDK4Q2ARH2J7qUxVjlZLE6cQoa2tQHN7b8 ibJU5EhpZAHCeYnNZG/JKWnPYk6Igv0VDcTWDovxqdfpMeVpD3GKuGVJ9UFT835+gza6Ul mJ6jI9zpkF7rjbgUZFZFu3OtQWrq2g/ElideEi0KkyhPEdx3z5vRPVeEJhso+3LuwUXPoN VyYVmpebdjA37oWr2rUkU/uRpVlbRgs+VW8m/HrmJo9ibGmfR/oxz2sUoH3CDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=TgChy4b8; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=TgChy4b8; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 514F3216A9 X-Spam-Score: -1.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: kwKnz0pqB74l Julien Lepiller writes: > There's special-files-service-type described here: http://guix.gnu.org/manual/devel/en/html_node/Base-Services.html#Base-Services > > However, I'm not sure it will work in /sys. I guess you'll have to try and report back :) Thank you for this suggestion. I added this to services in my system configuration: ``` (service special-files-service-type `(("/sys/class/graphics/fbcon/cursor_blink" "/home/user/no-blink")) ``` The contents of `home/user/no-blink` is "0". When I run a system reconfiguration I get this error "guix system: error: symlink: Operation not permitted: "sys/class/graphics/fbcon/cursor_blink.new". Any ideas on how to overcome this error? The contents of `/sys/class/graphics/fbcon/cursor_blink` is reset to "1" every time the computer is turned on and the cursor is blinking. I would like to get a service working that sets it to "0" so that I do not need to manually change this setting every time I boot the computer.