nixos-config/README.md
2022-10-05 22:23:28 -04:00

1.9 KiB

This repository contains the Nix / NixOS configuration for all of my systems. Start from flakes.nix (see Flakes).

To build,

# First, edit nixosConfigurations or darwinConfigurations in flake.nix to add
# your system's hostname. And then change `userName` to your username.
make

Install notes

Directory layout

  • home: home-manager config
  • nixos: nixos config (includes nix-darwin)
  • systems: top-level configuration.nix('ish) for various kinds of system

Tips

  • To update NixOS (and other inputs) run nix flake update2
  • To autoformat the project tree using nixpkgs-fmt, run nix fmt.

  1. You might have to rm -rf /etc/nix/nix.conf, so our flake.nix can do its thing. ↩︎

  2. You may also update the inputs selectively, viz.: nix flake lock --update-input nixpkgs --update-input darwin --update-input home-manager ↩︎