From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Orgmode for managing OS configuration Date: Thu, 3 Nov 2016 15:24:29 -0500 Message-ID: References: <87mvhgbrlb.fsf@jupiter.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2OYr-0006Sq-TW for emacs-orgmode@gnu.org; Thu, 03 Nov 2016 16:24:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2OYq-0000sj-TR for emacs-orgmode@gnu.org; Thu, 03 Nov 2016 16:24:33 -0400 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:36569) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2OYq-0000rz-LV for emacs-orgmode@gnu.org; Thu, 03 Nov 2016 16:24:32 -0400 Received: by mail-wm0-x22c.google.com with SMTP id p190so10460760wmp.1 for ; Thu, 03 Nov 2016 13:24:32 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Giacomo M Cc: emacs-orgmode , Stefan Huchler On Thu, Nov 3, 2016 at 9:22 AM, Giacomo M wrote: > Dear Stefan, > > thanks for the hints, I wasn't aware of these projects. While they sound > appealing, I would like to stick to my current distribution (archlinux), for > a variety of reasons (e.g. Im updating my raspberry which seems more > supported by arch than nixos, I'm more familiar with it, I like the vanilla > approach and wiki). Anyway, I'll look more into these options. Made me chuckle. I'm on Arch and have been for years after trying a bunch of others. It's hard to explain but you just find a distro that works and you like it... and it's hard to imagine going elsewhere! We had the same thought when accomplishing this through another distro was suggested (even if those other distros are amazing). I'd love to hear where you get with this, and the idea is quite intriguing. It's pretty rare I wipe and re-install, but I do like to keep configuration files backed up so I don't have to re-figure-out everything between my last install and the next. I have a cron job that grabs config files of interest and stores them in one folder; periodically I push to git. That's as far as I got and generally on a new system I just pull them in one by one as I remember that I need them. Packages can cause this issue... after a year or two on a system, there's packages that say they were explicitly installed, but I don't recall why. Some way to track the evolution of a system along with notes/links of where you found some fix or solution would be really cool (and well suited to Org!). I'd like to see/hear about what you end up with! John > > Still, having one or few org files documenting AND implementing my setup, > apart from being easy potential blog posts, I think would help me keeping > things under control (especially over years-long time horizons). It is > working well for my emacs conf (before my .emacs was a mess), but not sure > if it's the same scaling up to OS (e.g. chmod when tangling, root user > privileges when executing, or other things I'm not aware of). > > > Il 03 Nov 2016 2:55 PM, "Stefan Huchler" ha > scritto: >> >> Giacomo M writes: >> >> > Dear all, >> > I would like to clean up my Linux setup to be easily replicable. I am >> > considering keeping everything in one org file, and then tangling >> > files (e.g. exec scripts, systemd service unit files) and executing >> > bash snippets (e.g. for installing packages and sed'ing config files). >> > Then one would need just emacs and git (or rsync) to start with. >> > >> > Does anybody have experience with this? Is the experience positive or >> > negative? >> > >> > Also, should I just run emacs as root? Or using somehow sudo non >> > interactively for babel blocks execution? >> > >> > Thanks, >> > >> > Giacomo M >> >> Do you know about nixos and guixsd? Sounds like you want to implement >> here something similar, except less good cause this distributions have >> also atomic updates and features like testing a configuration and >> rollback features and some sort of conflict management, also it can >> switch "profiles" without reboots and stuff like that. >> >> >