From mboxrd@z Thu Jan 1 00:00:00 1970 From: swedebugia@riseup.net Subject: Idea: guix printer configuration generation Date: Wed, 16 Jan 2019 06:35:16 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:37255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjmHn-0007OO-JO for guix-devel@gnu.org; Wed, 16 Jan 2019 09:35:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjmHm-0000SC-Hv for guix-devel@gnu.org; Wed, 16 Jan 2019 09:35:19 -0500 Received: from mx1.riseup.net ([198.252.153.129]:49402) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gjmHm-0000Jp-3m for guix-devel@gnu.org; Wed, 16 Jan 2019 09:35:18 -0500 Received: from piha.riseup.net (piha-pn.riseup.net [10.0.1.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id B304A1A160F for ; Wed, 16 Jan 2019 06:35:16 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by piha.riseup.net with ESMTPSA id 75B891C3E57 for ; Wed, 16 Jan 2019 06:35:16 -0800 (PST) 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel Hi I would rather not have to learn the CUPS web interface just to configure my printer. Do we have a way to do this yet from config.scm? I think we should abstract away everything CUPS. Maybe we could make a guix printer importer? The idea is to extract information about the printer via Guile and print what the user need to add to the config.scm. Something like this: $ guix printer "Found 1 USB printer: HP DeskJet 4330 (cups-configuration (printer (name "HP DeskJet 4330" (connection "usb://34234556" (settings (paper "a4" (source "default" ..." When the user adds this to their config.scm and reconfigures the printer JUST WORKS. Thoughts? -- Cheers Swedebugia