Skip to content

lejeunel/dotfiles

Repository files navigation

Readme

Quick start

  1. Acquire a NixOS 24.05+ image:
wget -O nixos.iso https://channels.nixos.org/nixos-unstable/latest-nixos-minimal-x86_64-linux.iso
  1. Write it to a USB drive:
# Replace /dev/sdX with the correct partition!
cp nixos.iso /dev/sdX
  1. Restart and boot into the installer.
  2. Do your partitions and mount your root to /mnt
  3. Clone these dotfiles somewhere:
git clone --recurse-submodules https://github.com/lejeunel/dotfiles
  1. Create a host config in hosts/
  2. Run the installer:
sudo nixos-install \
    --impure \
    --show-trace \
    --root /mnt \
    --flake .#host

Where host corresponds to a host defined in hosts/

  1. Copy dotfiles over to new partition
sudo mkdir -p /mnt/etc/nixos
sudo cp -R $PWD /mnt/etc/nixos/dotfiles
  1. Then reboot and you’re good to go!

[!WARNING] Don’t forget to change your root and $USER passwords! They are set to nixos by default.

Commands

Rebuilding system

nh os switch -u ~/dotfiles

Apply Home-Manager configuration

See Makefile.

Cleaning old generations

nh clean all

Enabling experimental features globally when installing from standalone home-manager

echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published