Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::Generation Struct Reference

#include <profiles.hh>

Public Attributes

GenerationNumber number
 
Path path
 
time_t creationTime
 

Detailed Description

A generation is a revision of a profile.

Each generation is a mapping (key-value pair) from an identifier (number) to a store object (specified by path).

Member Data Documentation

◆ creationTime

time_t nix::Generation::creationTime

When the generation was created. This is extra metadata about the generation used to make garbage collecting old generations more convenient.

◆ number

GenerationNumber nix::Generation::number

The number of a generation is its unique identifier within the profile.

◆ path

Path nix::Generation::path

The store path identifies the store object that is the contents of the generation.

These store paths / objects are not unique to the generation within a profile. Nix tries to ensure successive generations have distinct contents to avoid bloat, but nothing stops two non-adjacent generations from having the same contents.

Todo
Use StorePath instead of Path?

The documentation for this struct was generated from the following file: