Skip to content

MLFlexer/.dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.dotfiles

image

Install

Warning

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

NixOS

Replace <host> with desired host

nixos-rebuild switch --use-remote-sudo --flake github:MLFlexer/.dotfiles#<host>

Or do it locally by cloning the repo and running:

nixos-rebuild switch --use-remote-sudo --flake $HOME/repos/.dotfiles#<host>

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

Updating

NixOS-rebuild switch

nixos-rebuild switch --use-remote-sudo --flake $HOME/repos/.dotfiles#<host>

Home-Manager switch

home-manager switch --flake $HOME/repos/.dotfiles/#<user>

Flake lock

nix flake update

Cleaning

nix-collect-garbage --delete-older-than 7d

Building images and tarballs

WSL

Checkout Building your own system tarball for WSL.

Raspberry Pi 5

Checkout Building an sd-card image for Raspberry Pi 5.