Flakes: Difference between revisions
imported>Mic92 |
imported>Bqv Update |
||
| Line 101: | Line 101: | ||
defaultApp."<system>" = { type = "app"; program = "..."; }; | defaultApp."<system>" = { type = "app"; program = "..."; }; | ||
# | # Used for nixpkgs packages, also accessible via `nix build .#<name>` | ||
legacyPackages = TODO; | legacyPackages."<system>"."<attr>" = TODO; | ||
# | # Default overlay, for use in dependent flakes | ||
overlay = final: prev: { }; | overlay = final: prev: { }; | ||
# | # Same idea as overlay but a list or attrset of them. | ||
overlays = | overlays = {}; | ||
# | # Default module, for use in dependent flakes | ||
nixosModule = | nixosModule = { config }: { options = {}; config = {}; }; | ||
# | # Same idea as nixosModule but a list or attrset of them. | ||
nixosModules = | nixosModules = {}; | ||
# | # Attrset of nixos configurations by hostname. | ||
nixosConfigurations = | nixosConfigurations."<hostname>" = {}; | ||
# TODO: | # TODO: Derivations? | ||
hydraJobs = TODO; | hydraJobs = TODO; | ||
# Used by `nix flake init -t <flake>` | # Used by `nix flake init -t <flake>` | ||