# Install git and curl
sudo apt install git curl
# Install nix
# Version 2.17.1 must be used as long as https://github.com/NixOS/nix/pull/9723 is not merged (Bug in `config.lib.file.mkOutOfStoreSymlink`)
sh <(curl -L https://releases.nixos.org/nix/nix-2.17.1/install) --daemon
# Clone repository
git clone https://github.com/hendrikbursian/dotfiles.git ~/.dotfiles
# Let home-manager install everything else
NIXPKGS_ALLOW_UNFREE=1 nix --extra-experimental-features nix-command --extra-experimental-features flakes run home-manager/master -- init --switch ~/.dotfiles/
# Set git ssh url
git -C ~/.dotfiles remote set-url origin [email protected]:hendrikbursian/dotfiles.git
# Setup the rest
~/.dotfiles/ansible/scripts/run_ansible.sh
# set keymaps
sudo cp "$DOTFILES/xkb/symbols/pc" "/usr/share/X11/xkb/symbols/pc"
sudo setxkbmap
After the initial installation all further installations can be run with the following command:
NIXPKGS_ALLOW_UNFREE=1 home-manager switch --impure --flake ~/.dotfiles
For updating dependencies that are managed with home-manger run the following command:
nix flake update ~/.dotfiles/