Flakes: Difference between revisions

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