From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giacomo M Subject: Re: Orgmode for managing OS configuration Date: Thu, 3 Nov 2016 15:22:41 +0100 Message-ID: References: <87mvhgbrlb.fsf@jupiter.lan> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134f2ec64bba20540664af6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Iui-0006A5-LM for emacs-orgmode@gnu.org; Thu, 03 Nov 2016 10:22:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Iuh-0008TV-9H for emacs-orgmode@gnu.org; Thu, 03 Nov 2016 10:22:44 -0400 Received: from mail-qt0-x22f.google.com ([2607:f8b0:400d:c0d::22f]:35539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2Iuh-0008TJ-3V for emacs-orgmode@gnu.org; Thu, 03 Nov 2016 10:22:43 -0400 Received: by mail-qt0-x22f.google.com with SMTP id c47so29022437qtc.2 for ; Thu, 03 Nov 2016 07:22:43 -0700 (PDT) In-Reply-To: <87mvhgbrlb.fsf@jupiter.lan> 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: Stefan Huchler Cc: emacs-orgmode@gnu.org --001a1134f2ec64bba20540664af6 Content-Type: text/plain; charset=UTF-8 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. 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. > > > --001a1134f2ec64bba20540664af6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

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 distributio= n (archlinux), for a variety of reasons (e.g. Im updating my raspberry whic= h 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.

Still, having one or few org files documenting AND implement= ing my setup, apart from being easy potential blog posts, I think would hel= p me keeping things under control (especially over years-long time horizons= ). It is working well for my emacs conf=C2=A0 (before my .emacs was a mess)= , but not sure if it's the same scaling up to OS (e.g. chmod when tangl= ing, root user privileges when executing, or other things I'm not aware= of).


Il 03 Nov 2016 2:= 55 PM, "Stefan Huchler" <stefan.huchler@mail.de> ha scritto:
Giacomo M <jackjackk@gmail.com> writes:

> Dear all,
> I would like to clean up my Linux setup to be easily replicable. I am<= br> > 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 fil= es).
> Then one would need just emacs and git (or rsync) to start with.
>
> Does anybody have experience with this? Is the experience positive or<= br> > 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.


--001a1134f2ec64bba20540664af6--