<commit_before>#+TITLE: Dotfiles
#+AUTHOR: <NAME>
#+LANGUAGE: en

* Table of Contents                                            :noexport:TOC:
- [[#about][About]]
- [[#my-toolbox][My Toolbox]]
- [[#setup][Setup]]

* About
This repository contains my systems setup.
I have three hosts set up by this repository:
- A Lenovo laptop running [[https://nixos.org/][NixOS]]
- The same Lenovo laptop running [[https://www.debian.org/][GNU/Linux debian]]
- A Macbook running macOS
I use [[https://nixos.org/][nix]] as package manager for all hosts.
I use [[https://github.com/nix-community/home-manager][Home Manager]] to declare nix packages and configuration to use.
For the macbook I additionally use [[https://github.com/LnL7/nix-darwin][nix-darwin]] to set up system packages and fonts.
All hosts are configured from their respective [[/hosts][/hosts]] directory, [[hosts/common.nix][hosts/common.nix]] contain shared configuration and program-specific configuration live under [[/programs/][/programs/]]
* My toolbox
- [[https://www.gnu.org/software/emacs/][GNU Emacs]] with plugins such as evil-mode, ivy, projectile, magit, org-mode, lsp-mode and more
- [[https://neovim.io/][neovim]] for basic text editing
- [[https://xmonad.org/][xmonad]] as window-manager, with [[https://dunst-project.org/][Dunst]] for notifications and [[https://polybar.github.io/][polybar]] as status bar
- [[https://www.zsh.org/][Zsh]] with [[https://ohmyz.sh/][Oh My Zsh]] as shell
- [[https://github.com/alacritty/alacritty][Alacritty]] as terminal emulator
- Appearance-wise i use [[https://github.com/be5invis/Iosevka][Iosevka]] as my default font and [[https://ethanschoonover.com/solarized/][Solarized dark]] as color theme

* Setup
- [[https://nixos.org/manual/nix/stable/#sect-multi-user-installation][Install nix]] and set up flakes
- [[https://github.com/nix-community/home-manager#installation][Set up home-manager]]
- Clone this repository
  #+begin_src shell
  $ git clone <EMAIL>:sebastiant/dotfiles.git
  $ cd dotfiles
  #+end_src
- Change name, username and email if you're not me
  #+begin_src shell
  $ grep sebastian -r .
  $ # edit away!
  #+end_src
- Create the first generation
  - NixOS
    #+begin_src shell
    $ sudo nixos-rebuild switch --flake '.#'
    #+end_src
  - Linux and macOS
    #+begin_src shell
    $ nix build && sudo ./result/activate && rm ./result
    #+end_src
# End:<commit_msg>Fix faulty README instructions for linux installation<commit_after>#+TITLE: Dotfiles
#+AUTHOR: <NAME>
#+LANGUAGE: en

* Table of Contents                                            :noexport:TOC:
- [[#about][About]]
- [[#my-toolbox][My Toolbox]]
- [[#setup][Setup]]

* About
This repository contains my systems setup.
I have three hosts set up by this repository:
- A Lenovo laptop running [[https://nixos.org/][NixOS]]
- The same Lenovo laptop running [[https://www.debian.org/][GNU/Linux debian]]
- A Macbook running macOS
I use [[https://nixos.org/][nix]] as package manager for all hosts.
I use [[https://github.com/nix-community/home-manager][Home Manager]] to declare nix packages and configuration to use.
For the macbook I additionally use [[https://github.com/LnL7/nix-darwin][nix-darwin]] to set up system packages and fonts.
All hosts are configured from their respective [[/hosts][/hosts]] directory, [[hosts/common.nix][hosts/common.nix]] contain shared configuration and program-specific configuration live under [[/programs/][/programs/]]
* My toolbox
- [[https://www.gnu.org/software/emacs/][GNU Emacs]] with plugins such as evil-mode, ivy, projectile, magit, org-mode, lsp-mode and more
- [[https://neovim.io/][neovim]] for basic text editing
- [[https://xmonad.org/][xmonad]] as window-manager, with [[https://dunst-project.org/][Dunst]] for notifications and [[https://polybar.github.io/][polybar]] as status bar
- [[https://www.zsh.org/][Zsh]] with [[https://ohmyz.sh/][Oh My Zsh]] as shell
- [[https://github.com/alacritty/alacritty][Alacritty]] as terminal emulator
- Appearance-wise i use [[https://github.com/be5invis/Iosevka][Iosevka]] as my default font and [[https://ethanschoonover.com/solarized/][Solarized dark]] as color theme

* Setup
- [[https://nixos.org/manual/nix/stable/#sect-multi-user-installation][Install nix]] and set up flakes
- [[https://github.com/nix-community/home-manager#installation][Set up home-manager]]
- Clone this repository
  #+begin_src shell
  $ git clone git@github.com:sebastiant/dotfiles.git
  $ cd dotfiles
  #+end_src
- Change name, username and email if you're not me
  #+begin_src shell
  $ grep sebastian -r .
  $ # edit away!
  #+end_src
- Create the first generation
  - NixOS
    #+begin_src shell
    $ sudo nixos-rebuild switch --flake '.#'
    #+end_src
  - Linux
    #+begin_src shell
    $ nix build && ./result/activate
    #+end_src
  - macOS
    #+begin_src shell
    $ nix build && sudo ./result/activate
    #+end_src
# End:
{'fraction_non_alphanumeric': 0.15445827382166905, 'fraction_numerical': 0.0008161599673536013, 'mean_word_length': 3.8295566502463054, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 34, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '280650', 'n_tokens_mistral': 1658, 'n_tokens_neox': 1587, 'n_words': 450}