feat(bugry): run static & mostly static websites on bugry
Change-Id: Ie4c723f68ce5a07e2c7ab1f10a9d652ad442f44a Reviewed-on: https://cl.tvl.fyi/c/depot/+/13067 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
2da13f51d5
commit
01016828b8
1 changed files with 25 additions and 10 deletions
|
|
@ -6,13 +6,22 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
(mod "atward.nix")
|
||||||
(mod "depot-replica.nix")
|
(mod "depot-replica.nix")
|
||||||
(mod "known-hosts.nix")
|
(mod "known-hosts.nix")
|
||||||
(mod "nixery.nix")
|
(mod "nixery.nix")
|
||||||
(mod "tvl-cache.nix")
|
(mod "tvl-cache.nix")
|
||||||
(mod "tvl-users.nix")
|
(mod "tvl-users.nix")
|
||||||
|
(mod "www/atward.tvl.fyi.nix")
|
||||||
(mod "www/nixery.dev.nix")
|
(mod "www/nixery.dev.nix")
|
||||||
(mod "www/self-redirect.nix")
|
(mod "www/self-redirect.nix")
|
||||||
|
(mod "www/signup.tvl.fyi.nix")
|
||||||
|
(mod "www/static.tvl.fyi.nix")
|
||||||
|
(mod "www/todo.tvl.fyi.nix")
|
||||||
|
(mod "www/tvix.dev.nix")
|
||||||
|
(mod "www/tvl.fyi.nix")
|
||||||
|
(mod "www/tvl.su.nix")
|
||||||
|
(mod "www/wigglydonke.rs.nix")
|
||||||
|
|
||||||
(depot.third_party.agenix.src + "/modules/age.nix")
|
(depot.third_party.agenix.src + "/modules/age.nix")
|
||||||
];
|
];
|
||||||
|
|
@ -173,18 +182,24 @@ in
|
||||||
tvl.cache.enable = true;
|
tvl.cache.enable = true;
|
||||||
tvl.cache.builderball = true;
|
tvl.cache.builderball = true;
|
||||||
|
|
||||||
services.depot.nixery.enable = true;
|
services.depot =
|
||||||
|
{
|
||||||
|
nixery.enable = true;
|
||||||
|
|
||||||
# Allow Gerrit to replicate depot to /var/lib/depot
|
# Allow Gerrit to replicate depot to /var/lib/depot
|
||||||
services.depot.replica.enable = true;
|
replica.enable = true;
|
||||||
|
|
||||||
services.depot.automatic-gc = {
|
# Run atward, the search engine redirection thing.
|
||||||
enable = true;
|
atward.enable = true;
|
||||||
interval = "1 hour";
|
|
||||||
diskThreshold = 50; # GiB (10% of disk)
|
automatic-gc = {
|
||||||
maxFreed = 150; # GiB
|
enable = true;
|
||||||
preserveGenerations = "14d";
|
interval = "1 hour";
|
||||||
};
|
diskThreshold = 50; # GiB (10% of disk)
|
||||||
|
maxFreed = 150; # GiB
|
||||||
|
preserveGenerations = "14d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue