Flakes: Difference between revisions

imported>Mic92
No edit summary
imported>Bqv
No edit summary
Line 94: Line 94:
   # Executed by `nix build .`
   # Executed by `nix build .`
   defaultPackage."<system>" = derivation;
   defaultPackage."<system>" = derivation;
   # Executed by `nix run .#<name>
   # Executed by `nix run .#<name>`
   apps."<system>"."<attr>" = {
   apps."<system>"."<attr>" = {
     type = "app";
     type = "app";
     program = "<store-path>";
     program = "<store-path>";
   };
   };
  # Executed by `nix run . -- <args?>`
   defaultApp."<system>" = { type = "app"; program = "..."; };
   defaultApp."<system>" = { type = "app"; program = "..."; };