Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Jan 23, 2024
1 parent 3e90f32 commit 4296d68
Show file tree
Hide file tree
Showing 3 changed files with 321 additions and 0 deletions.
284 changes: 284 additions & 0 deletions doc/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions doc/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
nixConfig = {
extra-substituters = "https://srid.cachix.org";
extra-trusted-public-keys = "srid.cachix.org-1:3clnql5gjbJNEvhA/WQp7nrZlBptwpXnUk6JAv8aB2M=";
};

inputs = {
emanote.url = "github:srid/emanote";
nixpkgs.follows = "emanote/nixpkgs";
flake-parts.follows = "emanote/flake-parts";
};

outputs = inputs@{ self, flake-parts, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [ inputs.emanote.flakeModule ];
perSystem = { self', pkgs, system, ... }: {
emanote = {
# By default, the 'emanote' flake input is used.
# package = inputs.emanote.packages.${system}.default;
sites."default" = {
layers = [ ./. ];
layersString = [ "." ];
port = 8181;
prettyUrls = true;
};
};
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.nixpkgs-fmt
];
};
formatter = pkgs.nixpkgs-fmt;
};
};
}
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# https://github.com/srid/nixci
nixci.default = let overrideInputs = { "haskell-flake" = ./.; }; in {
dev.dir = "dev";
doc.dir = "doc";
example = { inherit overrideInputs; dir = "example"; };
};
};
Expand Down

0 comments on commit 4296d68

Please sign in to comment.