emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Giacomo M <jackjackk@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>,
	Stefan Huchler <stefan.huchler@mail.de>
Subject: Re: Orgmode for managing OS configuration
Date: Thu, 3 Nov 2016 15:24:29 -0500	[thread overview]
Message-ID: <CA+M2ft_J2sfpitXXbco9VLEV8ViqdAFP59omic_qwLm+xGxEaA@mail.gmail.com> (raw)
In-Reply-To: <CA+GKSr6T703ez4VTSEK_sr5-WM_5_U+MyVZkqjm59P8RUMDOhQ@mail.gmail.com>

On Thu, Nov 3, 2016 at 9:22 AM, Giacomo M <jackjackk@gmail.com> 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" <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
>> > 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.
>>
>>
>

  parent reply	other threads:[~2016-11-03 20:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CA+GKSr7GAvW-iZTDEnAM6EdU=rp3QZi7HmFWG_TV3My-UyS2MA@mail.gmail.com>
     [not found] ` <CA+GKSr7rvUMwpSxkFtVuEb+48qoRn3WLVuXbd0yjuha4oj9TiQ@mail.gmail.com>
     [not found]   ` <CA+GKSr5NeWOe259b7YKrg==f=3KFjyrkf6ed4X6+g5rjeVWUjw@mail.gmail.com>
     [not found]     ` <CA+GKSr5o_t879MsGSv+dhKo_QK+ktXkzfwgn8OauZ8AhC_UEPA@mail.gmail.com>
     [not found]       ` <CA+GKSr4-pP2pzwvJaL2AdNYZpiWYD177iOXUN3fRxZ9fWpceGQ@mail.gmail.com>
     [not found]         ` <CA+GKSr5CAweuBR2C8xZRdHKdd=mY+31NKe3y4usv0=r-8S2NPg@mail.gmail.com>
     [not found]           ` <CA+GKSr4HpaNm2GMeJEHk5atuf43=NOGZ-jogqApMv2DPMzdRvQ@mail.gmail.com>
     [not found]             ` <CA+GKSr54xVPiSoWYfAup-KP1QPp_67HjVDryMpfHLmgWq24Mmw@mail.gmail.com>
     [not found]               ` <CA+GKSr5PQ8Gk38DU4LkWY4a3xqunr+8NzuCXrO6g7bng1taEWg@mail.gmail.com>
     [not found]                 ` <CA+GKSr6nQSjwBttRCT6sMyUyE_RdH7uf=teKyAkHQY2Wv-EwJA@mail.gmail.com>
     [not found]                   ` <CA+GKSr4A_XAicTpi7m5tVy8YK-aGcjft0Gs5HfeqR_e8_YjzHw@mail.gmail.com>
     [not found]                     ` <CA+GKSr6M1MiykhQazYpUB3vGoXSZObk7Ls569Muqm_5Nof7KdA@mail.gmail.com>
     [not found]                       ` <CA+GKSr52E_m04cWnTVfK1Uct-WqRC+WdtGnt9WQegc1uMMR-sA@mail.gmail.com>
     [not found]                         ` <CA+GKSr6G16qX069Xi1kOHTEDhxTXV_b9vP_n+RFnSQh=jTzC7Q@mail.gmail.com>
     [not found]                           ` <CA+GKSr5k1YhaOR2h1E1wY45Zj-sPkp4bFJNM0JfGxbc0GxPtKg@mail.gmail.com>
     [not found]                             ` <CA+GKSr7F+RGjZSLkxFkJTcQVg3eLFqm41y1kTi+CnWvimxPQ1w@mail.gmail.com>
2016-11-03 11:44                               ` Orgmode for managing OS configuration Giacomo M
2016-11-03 13:50                                 ` Stefan Huchler
2016-11-03 14:22                                   ` Giacomo M
2016-11-03 14:30                                     ` PICCA Frederic-Emmanuel
2016-11-03 20:24                                     ` John Hendy [this message]
2016-11-03 16:02                                 ` William Denton
2016-11-03 18:20                                 ` Grant Rettke
2016-11-26 18:26                                 ` Karl Voit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+M2ft_J2sfpitXXbco9VLEV8ViqdAFP59omic_qwLm+xGxEaA@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jackjackk@gmail.com \
    --cc=stefan.huchler@mail.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).