Move site to repo hercules-ci/flake.parts-website
https://github.com/hercules-ci/flake.parts-website
This commit is contained in:
parent
3fb80e6d35
commit
a98d38d5a5
12 changed files with 3 additions and 354 deletions
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
# Separate `tools` flake
|
||||
# Separate `dev` flake
|
||||
|
||||
Wouldn't recommend this pattern normally, but I'm trying to keep
|
||||
deps low for `flake-parts` until we have split dev inputs
|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
inputs.pre-commit-hooks-nix.flakeModule
|
||||
inputs.hercules-ci-effects.flakeModule
|
||||
../site/flake-module.nix
|
||||
inputs.hercules-ci-effects.flakeModule # herculesCI attr
|
||||
];
|
||||
systems = [ "x86_64-linux" "aarch64-darwin" ];
|
||||
perSystem = { config, self', inputs', pkgs, ... }: {
|
||||
|
|
@ -13,10 +12,6 @@
|
|||
nativeBuildInputs = [
|
||||
pkgs.nixpkgs-fmt
|
||||
pkgs.pre-commit
|
||||
pkgs.hci
|
||||
pkgs.netlify-cli
|
||||
pkgs.pandoc
|
||||
pkgs.mdbook
|
||||
];
|
||||
shellHook = ''
|
||||
${config.pre-commit.installationScript}
|
||||
|
|
@ -31,19 +26,6 @@
|
|||
};
|
||||
|
||||
};
|
||||
herculesCI = herculesCI@{ config, ... }: {
|
||||
onPush.default.outputs = {
|
||||
effects =
|
||||
withSystem "x86_64-linux" ({ config, pkgs, hci-effects, ... }: {
|
||||
netlifyDeploy = hci-effects.netlifyDeploy {
|
||||
content = config.packages.siteContent;
|
||||
secretName = "default-netlify";
|
||||
siteId = "29a153b1-3698-433c-bc73-62415efb8117";
|
||||
productionDeployment = herculesCI.config.repo.branch == "main";
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
flake = {
|
||||
# for repl exploration / debug
|
||||
config.config = config;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue