From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Huchler Subject: Re: Orgmode for managing OS configuration Date: Thu, 03 Nov 2016 14:50:08 +0100 Message-ID: <87mvhgbrlb.fsf@jupiter.lan> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2IQj-0006s0-F2 for emacs-orgmode@gnu.org; Thu, 03 Nov 2016 09:51:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2IQg-0004RE-Cj for emacs-orgmode@gnu.org; Thu, 03 Nov 2016 09:51:45 -0400 Received: from [195.159.176.226] (port=35322 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2IQg-0004R6-5u for emacs-orgmode@gnu.org; Thu, 03 Nov 2016 09:51:42 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c2IPl-0003Rg-H8 for emacs-orgmode@gnu.org; Thu, 03 Nov 2016 14:50:45 +0100 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: emacs-orgmode@gnu.org 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.