Skip to content

MLFlexer/.dotfiles

Repository files navigation

.dotfiles

image

Install

⚠️ This will install the dotfiles into $HOME/repos/.dotfiles. If you wish to install elsewhere you must change it manually in the bash script / nix flakes.

NixOS

Replace <host_name> with desired host

sudo nixos-rebuild switch --flake github:MLFlexer/.dotfiles#<host_name>

or do it locally by cloning the repo and running:

sudo nixos-rebuild switch --flake $HOME/repos/.dotfiles#<host_name>

Home-Manager

NixOS distribution

nix-shell -p git --command "curl -sSL https://raw.githubusercontent.com/MLFlexer/.dotfiles/main/nix_git_install.sh | bash"

Non-NixOS distribution

curl -sSL https://raw.githubusercontent.com/MLFlexer/.dotfiles/main/install.sh | bash

Optional

Install tmux plugins

Start a tmux session:

tmux

press CTRL+SPACE followed by an uppercase I to install the plugins

Changing the default shell

Change the shell to zsh for the current user

sudo usermod -s $(which zsh) $USER

Updating

NixOS

sudo nixos-rebuild switch --flake $HOME/repos/.dotfiles#<host_name>

Home-Manager

home-manager switch --flake "$HOME/repos/.dotfiles/#mlflexer"

If it does not work, then try the following:

nix build $HOME/repos/.dotfiles/#homeConfigurations.mlflexer.activationPackage
$HOME/repos/.dotfiles/result/activate