This commit is contained in:
parent
1e63b3d818
commit
9641eb8dd9
9 changed files with 619 additions and 83 deletions
45
flake.nix
45
flake.nix
|
@ -1,36 +1,43 @@
|
|||
{
|
||||
description = "https://noe.sh";
|
||||
description = "https://blood.pet";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
teapot.url = "git+https://git.sapphic.engineer/noe/teapot";
|
||||
mermaid-ascii.url = "github:AlexanderGrooff/mermaid-ascii";
|
||||
};
|
||||
|
||||
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
perSystem = { config, self', pkgs, lib, system, ... }: let
|
||||
in rec {
|
||||
outputs = { self, nixpkgs, flake-utils, ... }@inputs: flake-utils.lib.eachDefaultSystem (
|
||||
system: let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
inputs.teapot.overlays.default
|
||||
(final: prev: {
|
||||
mermaid-ascii = inputs.mermaid-ascii.packages.${system}.default;
|
||||
})
|
||||
];
|
||||
};
|
||||
in {
|
||||
devShells.default = import ./shell.nix { inherit pkgs; };
|
||||
|
||||
apps.default = apps.dev;
|
||||
apps.dev = pkgs.writeShellScript "noe.sh" ''
|
||||
${pkgs.python3} -m http.server -d ${packages.default}
|
||||
'';
|
||||
|
||||
packages.default = inputs.teapot.packages.${system}.brewTea {
|
||||
name = "noe.sh";
|
||||
packages.default = pkgs.brewTea {
|
||||
name = "blood.pet";
|
||||
version = "0.0.0";
|
||||
|
||||
src = ./.;
|
||||
layoutSrc = ./layouts;
|
||||
staticAssets = [ "./static" ];
|
||||
|
||||
markdollPlugins = let
|
||||
mkMarkdollPlugin = inputs.teapot.packages.${system}.mkMarkdollPlugin;
|
||||
in [
|
||||
(mkMarkdollPlugin "utils" ./plugins/utils.sh)
|
||||
markdollPlugins = [
|
||||
(pkgs.mkMarkdollPlugin "utils" ./plugins/utils.sh)
|
||||
(pkgs.mkMarkdollPlugin "logroll" ./plugins/logroll.sh)
|
||||
|
||||
(pkgs.mkMarkdollPlugin "mermaid" ./plugins/mermaid.sh)
|
||||
pkgs.mermaid-ascii
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue