switch hive forge domain
This commit is contained in:
parent
158ea8fc4c
commit
9029dcbb48
3 changed files with 77 additions and 66 deletions
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -373,11 +373,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787590410,
|
"lastModified": 1787762084,
|
||||||
"narHash": "sha256-1u1lIQ1r45r7vF4yIB8lKAH0bDNCHIWs40r3CVAMKxg=",
|
"narHash": "sha256-UsnVAWB3cw6zdpO1cqO1IrskYZUbVYhSKritpKHBuWI=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "d736be2071b076c05e6015f6d78b6dccd8a3317f",
|
"rev": "d702eeffe16c5a93cd835bce5cec579211a4f09a",
|
||||||
"revCount": 3889,
|
"revCount": 3910,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://forge.darkest.space/hyperhive/hyperhive.git"
|
"url": "https://forge.darkest.space/hyperhive/hyperhive.git"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,71 +1,88 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./containers.nix
|
./containers.nix
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config =
|
||||||
my = {
|
let
|
||||||
# keep-sorted start
|
gw = config.services.hyperhive.gateway;
|
||||||
intelGraphics.enable = true;
|
old = "forge.pr1ma.darkest.space";
|
||||||
muedeDesktopSettings.enable = true;
|
new = "forge.constellation.darkest.space";
|
||||||
podman.enable = true;
|
in
|
||||||
secureBoot.enable = true;
|
{
|
||||||
steam.enable = true;
|
my = {
|
||||||
users.muede.enable = true;
|
# keep-sorted start
|
||||||
wineGaming.enable = true;
|
intelGraphics.enable = true;
|
||||||
# keep-sorted end
|
muedeDesktopSettings.enable = true;
|
||||||
};
|
podman.enable = true;
|
||||||
|
secureBoot.enable = true;
|
||||||
|
steam.enable = true;
|
||||||
|
users.muede.enable = true;
|
||||||
|
wineGaming.enable = true;
|
||||||
|
# keep-sorted end
|
||||||
|
};
|
||||||
|
|
||||||
nix.settings.extra-platforms = [
|
nix.settings.extra-platforms = [
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
"i686-linux"
|
"i686-linux"
|
||||||
];
|
|
||||||
|
|
||||||
services.xserver.xkb = {
|
|
||||||
# Configure keymap in X11
|
|
||||||
layout = "de";
|
|
||||||
variant = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Configure console keymap
|
|
||||||
console.keyMap = "de";
|
|
||||||
|
|
||||||
users.users.muede.openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFCJUpbpB3KEKVoKWsKoar9J4RNah8gmQoSH6jQEw5dY pixel-JuiceSSH"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO1CRn4yYTL4XUdCebE8Z4ZeuMujBjorTdWifg911EOv pc2 home roaming"
|
|
||||||
];
|
|
||||||
|
|
||||||
# brightnessctl's udev rules grant the `video` group write access to backlight brightness (muede is in `video`)
|
|
||||||
environment.systemPackages = [
|
|
||||||
pkgs.android-tools
|
|
||||||
pkgs.brightnessctl
|
|
||||||
];
|
|
||||||
services.udev.packages = [ pkgs.brightnessctl ];
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
|
||||||
8776
|
|
||||||
1337
|
|
||||||
];
|
|
||||||
|
|
||||||
services.servicepoint-tanks = {
|
|
||||||
enable = false;
|
|
||||||
urls = [
|
|
||||||
"http://localhost:5666"
|
|
||||||
"http://localhost:5667"
|
|
||||||
];
|
];
|
||||||
};
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
|
||||||
"mbedtls-2.28.10"
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
services.xserver.xkb = {
|
||||||
|
# Configure keymap in X11
|
||||||
|
layout = "de";
|
||||||
|
variant = "";
|
||||||
|
};
|
||||||
|
|
||||||
my.constellation-swarm = {
|
# Configure console keymap
|
||||||
enable = true;
|
console.keyMap = "de";
|
||||||
hiveName = "pr1ma";
|
|
||||||
|
users.users.muede.openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFCJUpbpB3KEKVoKWsKoar9J4RNah8gmQoSH6jQEw5dY pixel-JuiceSSH"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO1CRn4yYTL4XUdCebE8Z4ZeuMujBjorTdWifg911EOv pc2 home roaming"
|
||||||
|
];
|
||||||
|
|
||||||
|
# brightnessctl's udev rules grant the `video` group write access to backlight brightness (muede is in `video`)
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.android-tools
|
||||||
|
pkgs.brightnessctl
|
||||||
|
];
|
||||||
|
services.udev.packages = [ pkgs.brightnessctl ];
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
8776
|
||||||
|
1337
|
||||||
|
];
|
||||||
|
|
||||||
|
services.servicepoint-tanks = {
|
||||||
|
enable = false;
|
||||||
|
urls = [
|
||||||
|
"http://localhost:5666"
|
||||||
|
"http://localhost:5667"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
"mbedtls-2.28.10"
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
|
|
||||||
|
my.constellation-swarm = {
|
||||||
|
enable = true;
|
||||||
|
hiveName = "pr1ma";
|
||||||
|
};
|
||||||
|
services.hyperhive.enableAllLocalDefaults = true;
|
||||||
|
services.nginx.enable = true;
|
||||||
|
|
||||||
|
# DNS: the hive's resolver must still answer for the old name, or
|
||||||
|
# nothing ever reaches the redirect. The forge module drops it from
|
||||||
|
# this list the moment you change `swarm.forge.domain`.
|
||||||
|
services.hyperhive.gateway.localNames = [ old ];
|
||||||
|
|
||||||
|
services.nginx.virtualHosts.${old} = (gw.lib.tlsFor old) // {
|
||||||
|
listen = gw.lib.listen;
|
||||||
|
locations."/".return = "301 https://${new}$request_uri";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
services.hyperhive.enableAllLocalDefaults = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,20 +37,14 @@ in
|
||||||
name = "constellation";
|
name = "constellation";
|
||||||
domain = "constellation.darkest.space";
|
domain = "constellation.darkest.space";
|
||||||
enableRequiredServices = true;
|
enableRequiredServices = true;
|
||||||
forge = {
|
forge.ci = {
|
||||||
# not default - still on hive domain
|
enable = true;
|
||||||
domain = "forge.pr1ma.darkest.space";
|
concurrency = 2;
|
||||||
ci = {
|
|
||||||
enable = true;
|
|
||||||
concurrency = 2;
|
|
||||||
};
|
|
||||||
sso.enable = true;
|
|
||||||
};
|
};
|
||||||
matrix = {
|
matrix = {
|
||||||
# not default - both still on hive domain
|
# not default - both still on hive domain
|
||||||
gatewayHost = "matrix.pr1ma.darkest.space";
|
gatewayHost = "matrix.pr1ma.darkest.space";
|
||||||
serverName = "pr1ma.darkest.space";
|
serverName = "pr1ma.darkest.space";
|
||||||
sso.enable = true;
|
|
||||||
};
|
};
|
||||||
hives = {
|
hives = {
|
||||||
"umbra" = {
|
"umbra" = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue