Skip to content

fkrause98/dotfiles

Repository files navigation

📓 dotfiles

This repo contains my configuration files for the programs I use, managed with nix through home-manager. It should work both on Mac and Linux.

Setup

🐧 Linux:

  1. Install nix
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix >> nix.sh && sh nix.sh install && rm nix.sh
  1. Add unstable channel
nix-channel --add https://nixos.org/channels/nixpkgs-unstable
  1. Clone the repo and bootstrap home-manager:
git clone [email protected]:fkrause98/dotfiles.git ~/dotfiles && nix run home-manager/master -- init --switch ~/dotfiles 

🍎 Mac install:

For Mac, I'm using both home-manager and nix-darwin.

  1. Install nix
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix >> nix.sh && sh nix.sh install && rm nix.sh
  1. Add unstable channel
nix-channel --add https://nixos.org/channels/nixpkgs-unstable && nix-channel --update
  1. Install brew manually since nix-darwin needs it:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" \
 && eval "$(/opt/homebrew/bin/brew shellenv)" 
  1. Update the mac's host-name to match with the one expected on the config, use one of these two:
   sudo scutil --set LocalHostName muaddib
   sudo scutil --set LocalHostName arrakis
  1. Install nix-darwin
nix run nix-darwin --extra-experimental-features nix-command --extra-experimental-features flakes -- switch --flake ~/dotfiles.#mac
  1. Setup fish's prompt, install doom emacs:
fish && tide-setup && install-doom-emacs

Some useful Nix references:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published