Skip to content

skbolton/nix-dotfiles

Repository files navigation

Orlando's Dotfiles - Nix Edition

Installing on a new machine

Enable flakes inside of installer

export NIX_CONFIG="experimental-features = nix-command flakes"

Clone dotfiles into /mnt/etc/nixos

# pull git package
nix-shell -p git
git clone https://github.com/skbolton/nix-dotfiles /mnt/etc/nixos
cd /mnt/etc/nixos

Create a new host directory for machine

mkdir hosts/$HOSTNAME

Generate config - this will scan the hardware and add a hardware-configuration.nix for host

nixos-generate-config --root /mnt

Move generated hardware-configuration.nix into host dir

TODO: Maybe there is a way to set where to dump this file to?

mv hardware-configuration /hosts/$HOSTNAME

Remove configuration.nix that was generated. The other hosts have enough of a template to copy

rm configuration.nix

Make a default.nix for host

vim hosts/$HOSTNAME/default.nix

Copy and nudge contents of this file based on other hosts

TODO: Maybe I can break some stuff out into more common shared code?

Add new host entry to flake.nix. Copy from a different host and then nudge $HOSTNAME.

Run installer

This is going to ask some questions about accepting trust levels

nixos-install --flake .#$HOSTNAME

Building custom iso

nix build '.#install-isoConfigurations.minimal'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published