Home

Awesome

AGPL project chat Harmeless Code of Conduct

This repository contains the Nix / NixOS configuration for all of my systems. See nixos-unified—specifically nixos-unified-template—if you wish to create your own configuration from scratch.

Setup

To use this repository as base configuration for your new machine running:

NixOS Linux

[!TIP] For a general tutorial, see https://nixos.asia/en/nixos-install-flake

macOS

Architecture

Start from flake.nix (see Flakes). flake-parts is used as the module system.

Directory layout

[!TIP] See flake-module.nix for autowiring of flake outputs based on this directory structure.

PathCorresponding flake output
./configurations/{nixos,darwin,home}/foo.nix{nixos,darwin,home}Configurations.foo
./mdules/{nixos,darwin,home,flake-parts}/foo.nix{nixos,darwin,home,flake}Modules.foo
./overlays/foo.nixoverlays.foo
./packagesN/A (Nix packages)
./secretsN/A (agenix data)

Tips

Discussion

If you wish to discuss about this config, join the Zulip.

Footnotes

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