Skip to content

cbleslie/nixpkgs.news

 
 

Repository files navigation

nixpkgs.news

Nix Flakes Ready Built With Snowfall

  

An experiment to make Nix ecosystem news more accessible.

Development

If you are using direnv, run direnv allow after cloning this repository to automatically enable the development shell. If you are not using direnv, then you must manually run nix develop in after cloning this repository in order to activate the development shell.

The development shell provides the following packages:

  • NodeJS
  • Bun

Node is used for normal development tasks, but Bun is used to execute tools/* scripts due to Node choking on some useful features. Ideally we would switch over to Bun fully, but there isn't currently a Nix builder for projects using bun.lockb files.

To start developing, run npm install to get dependencies and then npm run dev to start the development server.

Usage

This project is intended to be consumed by a NixOS system. First, add this repository as an input to your flake.

{
    description = "My Nix flake";

    inputs = {
        nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";

        nixpkgs-news = {
            url = "github:jakehamilton/nixpkgs.news";
            inputs.nixpkgs.follows = "nixpkgs";
        };
    };
}

Then you can serve the website's files statically using a server like nginx in your system configuration.

{
    inputs, # Make the nixpkgs-news input available in your configuration.
    ...
}:
{
    services.nginx = {
        enable = true;
        recommendedProxySettings = true;

        virtualHosts."example.com" = {
            locations."/" = {
                root = inputs.nixpkgs-news.packages.nixpkgs-news;
            };
        };
    };
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 42.1%
  • Astro 34.7%
  • TypeScript 12.1%
  • CSS 8.8%
  • Nix 2.3%