Skip to content
DylanRJohnstonPublic

About

nixos confgiurations

Resources

Stars

5 stars

Watchers

1 watching

Forks

Repository files navigation

CI

Configuration files for NixOS and Home Manager. Feel free to browse and see what works for you. Reading through other people's configurations was very helpful for me as I was learning Nix.

Bootstrapping

To bootstrap a Darwin system configuration.

  1. Install Nix

    sh <(curl -L https://nixos.org/nix/install)
    
  2. Install Homebrew

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
  3. Install Nix Darwin

    nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
    ./result/bin/darwin-installer
  4. Clone Repository

    rm -rf ~/.nixpkgs
    git clone git@github.com:DylanRJohnston/nixos.git ~/.nixpkgs
  5. Configure System

    darwin-rebuild switch --flake ~/.nixpkgs

Project Structure

flake.nix evaluates all Nix files under modules/ and hosts/ through import-tree. New modules and hosts are discovered automatically without adding explicit imports to the flake.

  • modules/ defines composable arc aspects and their tests.
  • hosts/ declares each managed host and the aspects it composes.
  • docs/architecture/decisions/ records significant architecture decisions, alternatives, and supersession history as lightweight ADRs.
  • agents/ contains current project guidance and focused operational notes for coding agents.

The configuration uses den to map each host's selected aspects into NixOS, nix-darwin, Home Manager, and user-level configuration.

About

nixos confgiurations

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages