https://github.com/Niols/scd.niols.fr
Revision 9a4b354c8ea56366f62fd3764a92ebdc28006f0b authored by Nicolas Jeannerod on 11 February 2023, 22:59:20 UTC, committed by GitHub on 11 February 2023, 22:59:20 UTC
* Enter flake-parts

* Run `nixfmt`

* Move `mkDerivation` to own lib

* Enable pre-commit hooks

* Rework CI to use Cachix

* Enable cache in flake

* Try TeXlive medium

* Try TeXlive small

* Try TeXlive basic

* Custom TeXlive

* Use action to create PR comment

* +enumitem

* Enable action for testing purposes

* github.event.issue.number

* github.event.number

* +wrapfig

* Comment token

* Missing slash

* Re-disable action

* Run `prettier` on CSS files

* Run `prettier` on YAML files

* Run flake checks in CI as well

* Move `nixConfig` to proper place in flake

* Base on `scheme-small`

* Move packages to own files

* Breaaathe
1 parent 4f41204
Raw File
Tip revision: 9a4b354c8ea56366f62fd3764a92ebdc28006f0b authored by Nicolas Jeannerod on 11 February 2023, 22:59:20 UTC
Rework and improve Nix environment (#150)
Tip revision: 9a4b354
flake.nix
{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
  inputs.flake-parts.url = "github:hercules-ci/flake-parts";
  inputs.pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";

  outputs = inputs@{ flake-parts, ... }:
    flake-parts.lib.mkFlake { inherit inputs; } {
      imports = [
        inputs.pre-commit-hooks.flakeModule
        ./.nix/lib.nix
        ./.nix/pre-commit-settings.nix
        ./.nix/package-website.nix
        ./.nix/devShell.nix
      ];
      systems = [ "x86_64-linux" ];
    };

  nixConfig = {
    extra-trusted-substituters = [ "https://scd-niols-fr.cachix.org/" ];
    extra-trusted-public-keys = [
      "scd-niols-fr.cachix.org-1:7NP/UmPtYppVv3Qq7C6MNLL6jVL8x8bcPB96NckZpDw="
    ];
  };
}
back to top