feat: really easy to import in old versions of the site
This commit is contained in:
parent
34f8f0eb8c
commit
5c8dcdef00
2 changed files with 48 additions and 28 deletions
43
applications/skynet.ie/old_site.nix
Normal file
43
applications/skynet.ie/old_site.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{year}: {
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
with lib; {
|
||||
imports = [];
|
||||
|
||||
config = {
|
||||
assertions = [
|
||||
{
|
||||
assertion = asserts.assertOneOf "year" year [
|
||||
"2009"
|
||||
"2017"
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
services.skynet.acme.domains = [
|
||||
"${year}.skynet.ie"
|
||||
];
|
||||
|
||||
services.skynet.dns.records = [
|
||||
{
|
||||
record = year;
|
||||
r_type = "CNAME";
|
||||
value = config.services.skynet.host.name;
|
||||
}
|
||||
];
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts = {
|
||||
"${year}.skynet.ie" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "skynet";
|
||||
root = "${inputs."skynet_website_${year}".defaultPackage."x86_64-linux"}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue