From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CJO6NgcG4mVjBgEA62LTzQ:P1 (envelope-from ) for ; Fri, 01 Mar 2024 17:44:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id CJO6NgcG4mVjBgEA62LTzQ (envelope-from ) for ; Fri, 01 Mar 2024 17:44:56 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709311495; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=PSwPvJrO2I3nvPDy9PEJaZX84+HQ+67heFEYHIlZ2rE=; b=U/UbrFC4qnRD6DAYoTAsUk3oB+jNPumg3/P6+OxyKAStKc8Jq3qxJj9R7uyucN/qLLjinh EWR0yhgD9+J5DHXlnnNaZ398Tyah+MA4dmeSdvTT8c6eZS5X4H8s68lraUHw4wNbQBgLpI xq8Mcy0oFm+JDd6UQ6VJh2JuMGD8jQiF0QiX/haoK/xVfulejQQZcp2FQU0K6wOU53X7Fu JiNHrCGZfsMDJwDYi7JJ3tOr9Hvv4+27fd7pa7O8TLil9+tlq020YXlhgltGmhO3HTmyfs EzihfCI2H4pa2/pwPN7FQwAfsHOLs591U8g31ReTnCbSMD6dlAuXqh7wk4mtBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709311495; a=rsa-sha256; cv=none; b=BLahiO+5QnVNjj95/sCLSTjhj+9XWvOKWgfBeUS22CCzFpApBybt0bVAwK/IKyeolyj5Qo LTOBV33X17prElxkg/RmE7FYhmgWoT0z1nqDxXPuvrE/xllTgO7QNcZdKIYabkXcbOPvMS fSHJ4Ybehl+5KSeUgq2SyQp5fn9MYQ8XQ27o7zTBxtn6lU5NtTbSFCZhzr6tkNhn949yi+ N0TTqTlUqVymGmXylRraAESaY7ouUBOqFlH+AmGNaDsTR7DNTghZsEVsOKVMvCLyVQYM85 L8KDgc/Bz/d02SYS7Mu1+d/idjdb52fmNOsBtnHiBfmlk6JYYj1crE5A2/8r2g== 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 BEC1B6A6DB for ; Fri, 1 Mar 2024 17:44:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rg5zj-00058I-3v; Fri, 01 Mar 2024 11:44:23 -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 1rg5zc-00057v-Ia for guix-devel@gnu.org; Fri, 01 Mar 2024 11:44:17 -0500 Received: from mail01.noris.net ([62.128.1.221]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rg5zZ-0006S3-51 for guix-devel@gnu.org; Fri, 01 Mar 2024 11:44:15 -0500 Received: from p5b394e79.dip0.t-ipconnect.de ([91.57.78.121] helo=[192.168.110.2]) by mail01.noris.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) (envelope-from ) id 1rg5zU-0004nA-CD; Fri, 01 Mar 2024 17:44:08 +0100 Message-ID: <764e479a-b801-b3e5-b038-f6c90287b7d9@crazy-compilers.com> Date: Fri, 1 Mar 2024 17:44:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: A friendlier API for operating-system declarations Content-Language: de-DE, en-US To: antlers , edk@beaver-labs.com Cc: guix-devel@gnu.org References: <1a7168a5-5207-4dfa-ac12-b3fed841580b@app.fastmail.com> From: Hartmut Goebel Organization: crazy-compilers.com In-Reply-To: <1a7168a5-5207-4dfa-ac12-b3fed841580b@app.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Noris-IP: 91.57.78.121 Received-SPF: pass client-ip=62.128.1.221; envelope-from=h.goebel@crazy-compilers.com; helo=mail01.noris.net X-Spam_score_int: -54 X-Spam_score: -5.5 X-Spam_bar: ----- X-Spam_report: (-5.5 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-4.176, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL=1.31, 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: 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: 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-Migadu-Spam-Score: -3.37 X-Spam-Score: -3.37 X-Migadu-Queue-Id: BEC1B6A6DB X-Migadu-Scanner: mx11.migadu.com X-TUID: bsa5G02Me1MX Hi, Am 19.02.24 um 23:25 schrieb antlers: > (define (os-with-yubi parent users*) > (modify-record parent > (groups -> (cons (user-group (name "plugdev")) <>)) > (users -> (map (lambda (user) > (if (member (user-account-name user) > users*) > (modify-record user > (supplementary-groups -> (cons "plugdev" <>))) > user)) > <>)) > (services => (append <> (list > (service pcscd-service-type) > (simple-service 'u2f-udev-rules udev-service-type > (list (specification->package "libu2f-host"))) > (simple-service 'yubi-udev-rules udev-service-type > (list (specification->package "yubikey-personalization")))))))) I'd appreciate such a mechanism, as it fits my mental model of how to compose a system out of reusable components (much like "roles" in Ansible resp. Debop). -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |