Module outputs

Importing the nixos-flake flake-parts module will autowire the following flake outputs in your flake:

NameDescription
nixos-flake.libFunctions mkLinuxSystem, mkMacosSystem and mkHomeConfiguration
nixosModules.home-managerHome-manager setup module for NixOS
darwinModules_.home-manager 1 Home-manager setup module for Darwin
packages.updateFlake app to update key flake inputs
packages.activateFlake app to build & activate the system (locally or remotely over SSH) or home configuration

In addition, all of your NixOS/nix-darwin/home-manager modules implicitly receive the following specialArgs:

  • flake@{self, inputs, config} (config is from flake-parts’)
  • rosettaPkgs (if on darwin)
Footnotes
1.
Why the underscore in darwinModules_? This is to workaround a segfault with flake-parts. See https://github.com/srid/nixos-config/issues/31
Links to this page