From mboxrd@z Thu Jan 1 00:00:00 1970 From: L p R n d n Subject: Re: Brain storming cool Guix features Date: Mon, 07 Jan 2019 17:48:39 +0100 Message-ID: References: <87bm4wwrku.fsf@dismail.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:59455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggXBB-0005b1-01 for guix-devel@gnu.org; Mon, 07 Jan 2019 10:51:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggXB9-0003tm-S4 for guix-devel@gnu.org; Mon, 07 Jan 2019 10:51:04 -0500 Received: from mout01.posteo.de ([185.67.36.141]:51295) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ggXB9-0003o1-GM for guix-devel@gnu.org; Mon, 07 Jan 2019 10:51:03 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 6C91516007E for ; Mon, 7 Jan 2019 16:50:29 +0100 (CET) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 43YKYY6Tr1z6tng for ; Mon, 7 Jan 2019 16:48:33 +0100 (CET) In-Reply-To: <87bm4wwrku.fsf@dismail.de> (Joshua Branson's message of "Fri, 04 Jan 2019 07:11:13 -0500") 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@gnu.org Hellohello, Joshua Branson writes: > I had some cool ideas/features for things that GuixSD could potentially > add, and I wanted to share. Are any of these possible? > > #+BEGIN_SRC scheme > (operating system > (keymap "dvorak") > ...) > #+END_SRC > > > The above would make the bootloader, console, X, and wayland all use the > dvorak layout. That would be a nice feature! I currently use "dvorak", > and it's slightly annoying that grub uses qwerty. :( > > #+BEGIN_SRC > (user-account > (name "joshua") > (default-font "font-hack")) > #+END_SRC > > > The above would set a default font for the user joshua. > > > How about a hook that stores the user's profile of packages in a > manifest file after every package transaction (upgrade or downgrade)? > > #+BEGIN_SRC > (user-account > (name "joshua") > (updates-in-manifest #t) > (manifest-file "/etc/manifest.scm")) > #+END_SRC The ability to deal with user profiles in the configure file would be awesome. Is it already possible to define a "default" manifest for a user? If not, could be cool too. > > How about automatic updates? Since a guixSD user can always downgrade > to the previous version, it would be nice if it would automatically > update my user profile, root profile and reconfigure say once a week. > > #+BEGIN_SRC scheme > (operating system > (auto-upgrade #t) > (auto-upgrade-interval 'once-a-week) > ...) > #+END_SRC As said by Ricardo, currently a cron job might just be enough. In the long term, a tool to manage updating (pause, schedule, configure stuff) could be useful. > -- > Joshua Branson > Sent from Emacs and Gnus If I can add, I thought about something. - Currently, I think the only way for a GuixSD installation to break is if something goes wrong with the bootloader. Might be nice to have a tool (in the install image I suppose) to recover the bootloader. Maybe 'guix system init' can deal with that king of cases for now, I don't know, but a dedicated command might be able to use the original store, restore previous generations etc. Bye, Lprndn