Skip to content

fdietze/dotfiles

Repository files navigation

How I use my computer

dark mode screenshot light mode screenshot

My Installation

WARNING: These are the installation instructions for myself, not for you. You should have your own repository and get inspired by this one. If you have any questions, feel free to open issues.

All paths assume a running NixOS or nix-enabled system with flakes.

curl -sSfL https://artifacts.nixos.org/nix-installer | sh -s -- install --enable-flakes
# or
curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install | sh -s -- --daemon

A — Quick shell on any box (standalone Home Manager)

No clone needed; points straight at the GitHub flake. Ephemeral or permanent — brings my zsh, neovim, git and CLI tools.

# x86_64
nix run home-manager -- switch -b backup --flake github:fdietze/dotfiles#felix@x86_64-linux
# aarch64
nix run home-manager -- switch -b backup --flake github:fdietze/dotfiles#felix@aarch64-linux

B / C — Full NixOS host (defined host or brand-new machine)

One bootstrap script handles both. It clones the repo, then asks whether to set up the whole system (NixOS + Home Manager) or just the Home Manager shell profile. For a hostname that is already defined (e.g. gurke) it builds that host directly; for a new machine it derives a desktop-free host from hosts-nixos/template/, generates hardware-configuration.nix, and offers to rebuild.

bash <(curl -fsSL https://raw.githubusercontent.com/fdietze/dotfiles/master/scripts/setup-new-host.sh)

Nix-on-droid

nix-on-droid switch --flake ~/projects/dotfiles#korken

If curl is missing on a minimal install: nix-shell -p curl.

To keep a new host long-term, promote it: add desktops and a local.nix the way hosts-nixos/gurke/ does.

Awesome Links

Notes

  • managing dotfiles with a normal git repo and Home Manager-owned links

  • fzf over dotfiles: vd

  • Neo keyboard layout

  • Vim and keybindings

  • toggle ; at end of line

  • quickly edit dotfiles with vim: vv

  • fzf for editing dotfiles

  • git alias: g

  • zsh bell after every command

  • v for fzf+vim in current git repo

  • Tiling Window Manager keybindings

  • NixOS

  • Dark and Light color scheme switching

  • Tools

  • tig

  • fzf

  • redshift

  • unclutter

  • zeal

  • Scala

  • reverse compilation errors

Best practices

  • put lots of links to issues/docs as comments everywhere. Open them from vim with gx.

About

How I use my computer

Topics

Resources

Stars

45 stars

Watchers

3 watching

Forks

Contributors