Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

NixOS/nixos-summer

 
 

Repository files navigation

This is source code for summer.nixos.org website.

Contribute

To contribute please send a Pull Request. A preview link is going to be generated and added as a comment once build of the website finishes.

To develop on the website locally use the following commands.

$ nix build ./#packages.x86_64-linux.nixos-summer-serve -o ./result-serve
# or
$ nix-build . -A packages.x86_64-linux.nixos-summer-serve -o ./result-serve

$ ./result-serve/bin/serve

Last command will build the repository and watch for changes of the files in this repository. Once some file changes it will trigger a rebuild.

This only works on files tracked by git! For instance, if you want to add images, you need to add them to git before they are included in build.

Local preview is served at http://127.0.0.1:8000.

If you are using LiveReload browser extension the browser is going to be reloaded automatically once the rebuild is done. If you are not using LiveReload, you will have to refresh the browser yourself.

Happy hacking!

License

The content of the website is licensed under the Creative Commons Attribution Share Alike 4.0 International license.

Contributing to blog

To contribute a blog post, one must:

  • Add a nix attrset describing their blog post to the list blog/default.nix
  • Add a markdown file to the blog/ directory. Note that for nix syntax highlighting, one must include language-nix as the specified language. E.g.
\`\`\`language-nix
#some-nix-code
\`\`\`