Skip to content

ztlevi/dotty-nix

Repository files navigation

Test nixos build Made with Doom Emacs NixOS 20.03

  • Operating System: NixOS
  • Shell: zsh + antigen
  • DM: sddm + clairvoyance.nix
  • WM: bspwm + polybar
  • Editor: [Doom Emacs][doom-emacs] (and occasionally [vim][vimrc])
  • Terminal: alacritty
  • Launcher: rofi
  • Browser: firefox
  • GTK Theme: flat-remix-gtk
  • Icon Theme: flat-remix-icon

Works on my machine ¯\_(ツ)_/¯

Quick start

Note: if you're in China, use the mirror instead https://mirrors.tuna.tsinghua.edu.cn/help/nix/

NixOS

  1. Yoink [NixOS 20.09][nixos] (must be newer than Sept 12, 2020 for nixos-install --flake).
  2. Boot into the installer.
  3. Do your partitions and mount your root to /mnt
  4. git clone --recurse-submodules -j8 https://github.com/ztlevi/nix-dotfiles /mnt/etc/nixos
  5. OPTIONAL: Clone my private assets repo, cd /mnt/etc/nixos && git clone https://github.com/ztlevi/dotty-assets.git assets
  6. Install NixOS: nixos-install --root /mnt --flake /mnt/etc/nixos#XYZ, where XYZ is your hostname. Use #generic for a simple, universal config.
  7. OPTIONAL: Create a sub-directory in hosts/ for your device. See [host/kuro] as an example.
  8. Reboot!

Note: hey re equals sudo nixos-rebuild --flake .#kuro switch. You can also add -p <profile-name> to assign a profile name.

Post-Installation

  • for fcitx, run the following script to install config and dict.
${DOTTY_CONFIG_HOME}/misc/chinese/install_fcitx5_config.sh

Uninstall

rm -rf $HOME/{.nix-channels,.nix-defexpr,.nix-profile,.config/nixpkgs}
sudo rm -rf /nix

if [[ $(_os) == "macos" ]]; then
  # Delete Users in macos
  for num in {1..32}; do sudo dscl . -delete /Users/nixbld$num; done
  sudo dscl . -delete /Groups/nixbld
fi

Management

And I say, bin/hey. What's going on?

Command Description
hey rebuild Rebuild this flake (shortcut: hey re)
hey upgrade Update flake lockfile and switch to it (shortcut: hey up)
hey rollback Roll back to previous system generation
hey gc Runs nix-collect-garbage -d. Use sudo to clean system profile
hey push REMOTE Deploy these dotfiles to REMOTE (over ssh)
hey check Run tests and checks for this flake
hey show Show flake outputs of this repo

Frequently asked questions

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages