Flakes: Difference between revisions

imported>Drupol
m add `formatter` in output
imported>Drupol
m add formatter derivation examples
Line 141: Line 141:
   apps."<system>".default = { type = "app"; program = "..."; };
   apps."<system>".default = { type = "app"; program = "..."; };


   # Formatter
   # Formatter (alejandra, nixfmt or nixpkgs-fmt)
   formatter.<system> = derivation;
   formatter.<system> = derivation;
   # Used for nixpkgs packages, also accessible via `nix build .#<name>`
   # Used for nixpkgs packages, also accessible via `nix build .#<name>`