Nix-managed dotfiles for Arch Linux with Hyprland, built on top of end-4/dots-hyprland (ii).
- Arch Linux installed
- Flatpak (
sudo pacman -S flatpak) - end-4/dots-hyprland (ii) installed and functional
- Nix with flakes enabled
Warning
Back up your files. The flake has an automatic backup script that renames conflicting files to <filename>.bak, but manual backup is safer.
If you don't have Nix installed, use the Determinate Systems Installer:
curl -fsSL https://install.determinate.systems/nix | sh -s -- installEnsure your Nix configuration allows Flakes. Edit (or create) /etc/nix/nix.conf or ~/.config/nix/nix.conf:
experimental-features = nix-command flakesImportant
The config expects the repo at ~/GitHub/dotfiles. This path is used for internal symlinks.
mkdir -p ~/GitHub && cd ~/GitHub
git clone https://github.com/zedxihan/dotfiles.git
cd dotfilesUsername is auto-detected via
builtins.getEnv "USER"(requires--impure). No editing needed.
If home-manager is not on your PATH, enter a nix-shell first:
nix-shell -p home-managerThen run the install:
home-manager switch --flake .#arch-setup --impureOnce installed, use the dots command from anywhere:
dots update # Rebuild configuration
dots clean # Remove old generations, garbage collect
dots # List all commandsCustom Hyprland keybinds: modules/linux/hyprland.nix — opened in zed via CTRL + SUPER + ALT + /