Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 537 Bytes

README.md

File metadata and controls

37 lines (29 loc) · 537 Bytes

nixpaste

Online pastebin here.

Pastebin powered by Python and deployed by Nix:

$ cd /home/nixpaste
$ git clone https://github.com/lethalman/nixpaste.git
$ nix-build
$ result/bin/nixpaste

Deployment on NixOS:

{
  imports = [
    /home/nixpaste/nixpaste/nixos-module.nix
  ];
  
  services.nixpaste = {
    enable = true;
    config = {
      storageDir = "/home/nixpaste/storage";
      url = "http://nixpaste.lbr.uno";
    };
  };
}

For development:

$ nix-shell dev.nix