Skip to content

Commit

Permalink
doc: add flake
Browse files Browse the repository at this point in the history
and test in CI via nixci
  • Loading branch information
srid committed Jan 21, 2024
1 parent 930aed5 commit 7ec7134
Show file tree
Hide file tree
Showing 3 changed files with 323 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;
};
};
}
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
dev = {
dir = "./dev";
};
doc = {
dir = "./doc";
};
};
};
}

0 comments on commit 7ec7134

Please sign in to comment.