93 lines
1.9 KiB
Org Mode
93 lines
1.9 KiB
Org Mode
|
#+TITLE: Init New Machine
|
||
|
#+Author: Yann Esposito
|
||
|
|
||
|
tags :: [[file:../journal/2020-06-02--11-31-33Z--nix.org][nix]] [[file:../journal/2020-06-02--11-31-55Z--geek.org][geek]]
|
||
|
|
||
|
* Install nix
|
||
|
|
||
|
go https://nixos.org/nix/
|
||
|
|
||
|
#+BEGIN_SRC bash
|
||
|
echo "curl -L --proto '=https' --tlsv1.2 https://nixos.org/nix/install | sh"
|
||
|
#+END_SRC
|
||
|
|
||
|
* Init nix-channels
|
||
|
|
||
|
#+BEGIN_SRC bash
|
||
|
nix-channel --add https://nixos.org/channels/nixpkgs-20.03-darwin nixpkgs
|
||
|
nix-channel --add https://github.com/rycee/home-manager/archive/release-20.03.tar.gz home-manager
|
||
|
nix-channel --update
|
||
|
#+END_SRC
|
||
|
|
||
|
* Init your ssh keys
|
||
|
|
||
|
Either copy/them
|
||
|
*or* create new ssh keys and configure them at https://gitea.esy.fun
|
||
|
|
||
|
* Retrieve dot-files
|
||
|
|
||
|
This might need to resolve some conflicts.
|
||
|
|
||
|
#+BEGIN_SRC bash
|
||
|
nix-shell '<nixpkgs>' -p yadm
|
||
|
yadm clone gitea@gitea.esy.fun:yogsototh/dotfiles.git
|
||
|
#+END_SRC
|
||
|
|
||
|
* First home-manager sync
|
||
|
|
||
|
#+BEGIN_SRC bash
|
||
|
nix-shell '<home-manager>' -A install
|
||
|
#+END_SRC
|
||
|
|
||
|
* Final init via main sync-env
|
||
|
|
||
|
Do not forgot to clone elpa packages and perhaps additional inits.
|
||
|
This should be done correctly in the `sync-env.sh` script.
|
||
|
|
||
|
#+BEGIN_SRC bash
|
||
|
./bin/sync-env.sh
|
||
|
#+END_SRC
|
||
|
|
||
|
* Install Menlo-for-Powerline
|
||
|
|
||
|
#+BEGIN_SRC bash
|
||
|
git clone https://github.com/abertsch/Menlo-for-Powerline.git
|
||
|
open Menlo-for-Powerline
|
||
|
#+END_SRC
|
||
|
|
||
|
* Install iTerm2
|
||
|
|
||
|
https://www.iterm2.com
|
||
|
|
||
|
Set default font to Menlo for Powerline
|
||
|
|
||
|
* Install oh-my-fish
|
||
|
|
||
|
#+BEGIN_SRC bash
|
||
|
curl -L https://get.oh-my.fish | fish
|
||
|
#+END_SRC
|
||
|
|
||
|
* Clone solaryzed-iterm2
|
||
|
|
||
|
#+BEGIN_SRC bash
|
||
|
git clone gitea@gitea.esy.fun:yogsototh/solaryzed-iterm2.git
|
||
|
open solaryzed-iterm2/*.itermcolors
|
||
|
#+END_SRC
|
||
|
* Sync ~/.gnupg
|
||
|
* Make Emacs an app
|
||
|
|
||
|
cp -r ~/.nix-profile/Applications/Emacs.app /Applications
|
||
|
* Mails
|
||
|
|
||
|
offlineimap -o
|
||
|
notmuch new
|
||
|
cd ~/mail
|
||
|
mkdir yann.esposito.gmail
|
||
|
cd yann.esposito.gmail
|
||
|
gmi init yann.esposito@gmail.com
|
||
|
gmi pull
|
||
|
gmi push
|
||
|
|
||
|
* Install clj-kondo
|
||
|
Does not work from =nix=.
|