mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(reisen): free up RAM for migration purposes
This commit is contained in:
parent
fd61d8f199
commit
e4e2802c9e
4 changed files with 33 additions and 2 deletions
|
|
@ -7,6 +7,10 @@ _: {
|
|||
modules = [
|
||||
./nixos.nix
|
||||
];
|
||||
access.online = {
|
||||
# temporarily offline for server migration
|
||||
available = false;
|
||||
};
|
||||
exports = {
|
||||
services = {
|
||||
tailscale.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,12 @@
|
|||
{meta, ...}: {
|
||||
{
|
||||
meta,
|
||||
systemConfig,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf mkForce;
|
||||
isOffline = !systemConfig.access.online.available;
|
||||
in {
|
||||
imports = let
|
||||
inherit (meta) nixos;
|
||||
in [
|
||||
|
|
@ -18,6 +26,7 @@
|
|||
};
|
||||
|
||||
services.github-runner-zone = {
|
||||
enable = mkIf isOffline false;
|
||||
count = 32;
|
||||
networkNamespace.name = "ns1";
|
||||
};
|
||||
|
|
@ -40,4 +49,8 @@
|
|||
sops.defaultSopsFile = ./secrets.yaml;
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
systemd.services.minecraft-bedrock-server = mkIf isOffline {
|
||||
wantedBy = mkForce [];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue