Invoiceplane: Difference between revisions

From NixOS Wiki
imported>Onny
Init page on how to setup Invoiceplane
 
imported>Onny
Add example installing custom templates
Line 12: Line 12:


== Configuration ==
== Configuration ==
=== Invoice templates ===
Invoiceplane will render and export invoices as PDF. You can create your own invoice templates or reuse existing ones. The following example fetches an invoice template and makes it available to your running Invoiceplane instance
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{ config, pkgs, lib, ... }:
let
  template-vtdirektmarketing = pkgs.stdenv.mkDerivation {
    name = "vtdirektmarketing";
    src = pkgs.fetchgit {
      url = "https://git.project-insanity.org/onny/invoiceplane-vtdirektmarketing.git";
      sha256 = "1hh0q7wzsh8v8x03i82p6qrgbxr4v5fb05xylyrpp975l8axyg2z";
    };
    sourceRoot = ".";
    installPhase = ''
      mkdir -p $out
      cp invoiceplane-vtdirektmarketing/vtdirektmarketing.php $out/
    '';
  };
in {
    invoiceplane.sites."localhost" = {
      enable = true;
      invoiceTemplates = [ template-vtdirektmarketing ];
    };
}
</nowiki>}}


[[Category:Web Applications]]
[[Category:Web Applications]]

Revision as of 08:14, 7 September 2022

Invoiceplane is a web application for managing invoices, clients and payments.

Installation

To setup Invoiceplane locally, this is the most minimal configuration to get started

/etc/nixos/configuration.nix
services.invoiceplane.sites."localhost".enable = true;

After that Invoiceplane will be available at http://localhost .

Configuration

Invoice templates

Invoiceplane will render and export invoices as PDF. You can create your own invoice templates or reuse existing ones. The following example fetches an invoice template and makes it available to your running Invoiceplane instance

/etc/nixos/configuration.nix
{ config, pkgs, lib, ... }:
let

  template-vtdirektmarketing = pkgs.stdenv.mkDerivation {
    name = "vtdirektmarketing";
    src = pkgs.fetchgit {
      url = "https://git.project-insanity.org/onny/invoiceplane-vtdirektmarketing.git";
      sha256 = "1hh0q7wzsh8v8x03i82p6qrgbxr4v5fb05xylyrpp975l8axyg2z";
    };
    sourceRoot = ".";
    installPhase = ''
      mkdir -p $out
      cp invoiceplane-vtdirektmarketing/vtdirektmarketing.php $out/
    '';
  };

in {

    invoiceplane.sites."localhost" = {
      enable = true;
      invoiceTemplates = [ template-vtdirektmarketing ];
    };

}