Skip to content

davidnuon/nix2slides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nix2slides

Make a slidedeck

  1. Make a default.nix with the following
{
  nix2slides ?
    import (fetchTarball {
      url = "https://github.com/davidnuon/nix2slides/archive/refs/heads/main.tar.gz";
    }) {},
}:

# This derivaiton makes a slides.tar.gz which contains an `index.html`
# and all the relevant styles and JavaScript
nix2slides.mkDerivation {
  name = "My derivation name";

  # Title of the HTML page for the slide deck
  title = "My Slide Deck";

  # See https://revealjs.com/themes/ for valid themes
  theme = "sky";

  # A list of multi-line markdown strings that represent your slides
  content = [
    ''
      # Hello
    ''

    '' 
      # Slides 2
    ''
  ];
}
  1. Run nix-build
  2. Collect slides.tar.gz

About

Make revealJS presentations with Nix!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages