News for hackers. Stuff that matters.
Re:Sequoia-PGP – A new OpenPGP implementation in Rust by drexlspivey on Thursday August 02, 2018 @07:31AM (#17670669)
I found this brilliant way to manage your dotfiles in an old hn comment. https://news.ycombinator.com/item?id=11071754

<quote>

I use:

    git init --bare $HOME/.myconf
    alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME'
    config config status.showUntrackedFiles no
where my ~/.myconf directory is a git bare repository. Then any file within the home folder can be versioned with normal commands like:

    config status
    config add .vimrc
    config commit -m "Add vimrc"
    config add .config/redshift.conf
    config commit -m "Add redshift config"
    config push
And so one…

No extra tooling, no symlinks, files are tracked on a version control system, you can use different branches for different computers, you can replicate you configuration easily on new installation.

</quote>

Re:Sequoia-PGP – A new OpenPGP implementation in Rust by danieldk on Thursday August 02, 2018 @08:50AM (#17671014)
No extra tooling, no symlinks, files are tracked on a version control system, you can use different branches for different computers, you can replicate you configuration easily on new installation.

But synchronizing shared configuration is clunky (you have to cherry pick commits between branches I guess).

I use NixOS and Nix on my MacBook, which allows you to store and version your whole system configuration. I have factored out different parts of my configuration (emacs, zsh, etc.) in different .nix files. So, I just have one file per machine where I import the relevant configurations and specify the packages that I want to have available. E.g. this is my user configuration on NixOS:

https://github.com/danieldk/nix-home/blob/master/machines/mi...

and macOS:

https://github.com/danieldk/nix-home/blob/master/machines/ma...

Re:Sequoia-PGP – A new OpenPGP implementation in Rust by eiginn on Thursday August 02, 2018 @11:42AM (#17672293)
Thanks for sharing those, I had kind of written off Nix for personal laptop after first glance, going to play around again.
Re:Sequoia-PGP – A new OpenPGP implementation in Rust by peatmoss on Thursday August 02, 2018 @11:08AM (#17672020)
This is brilliant! I think I'm about to go and replace some make-based infrastructure as a result.