ps2live: init
This commit is contained in:
parent
630c7f2616
commit
7078ee7737
13 changed files with 262 additions and 280 deletions
|
@ -30,6 +30,7 @@
|
|||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
networking.dhcpcd.IPv6rs = true;
|
||||
# networking.interfaces.enp5s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp6s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp7s0.useDHCP = lib.mkDefault true;
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
192.168.1.229
|
|
@ -1,36 +0,0 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/4f8dd009-2ca1-4237-92ac-3fbc3823781d";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/45FC-9E5B";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp6s18.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
|
@ -23,6 +23,9 @@ in {
|
|||
mango.servers."${tsHost "mango" 6167}" = {};
|
||||
hsb.servers."${tsHost "happystaticbuzz" 8080}" = {};
|
||||
ks.servers."${tsHost "keysmash" 8080}" = {};
|
||||
ps2l_saerro.servers."${tsHost "ps2live" 8001}" = {};
|
||||
ps2l_aggpop.servers."${tsHost "ps2live" 8010}" = {};
|
||||
ps2l_metagame.servers."${tsHost "ps2live" 8020}" = {};
|
||||
};
|
||||
|
||||
virtualHosts = let
|
||||
|
@ -31,7 +34,6 @@ in {
|
|||
http3 = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
||||
};
|
||||
static = { src ? null, url ? null, rev ? null, aliases ? [] }: {
|
||||
serverAliases = aliases;
|
||||
|
@ -51,7 +53,16 @@ in {
|
|||
url = "https://codeberg.org/noe/personal-site.git";
|
||||
rev = "f26c50a2d44ddd6094804949c9f338010b61bb79";
|
||||
};
|
||||
|
||||
ps2live = upstream: {
|
||||
locations."/" = {
|
||||
proxyPass = "http://ps2l_${upstream}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
} // defaultConfig;
|
||||
in {
|
||||
"" = placeholder;
|
||||
|
||||
# Matrix (main)
|
||||
"mx.sapphic.engineer" = defaultConfig // {
|
||||
listen = [
|
||||
|
@ -110,6 +121,10 @@ in {
|
|||
rev = "f669f68f1bf89c8f161627e994c9c865811964e8";
|
||||
};
|
||||
|
||||
"agg.ps2.live" = ps2live "agg";
|
||||
"saerro.ps2.live" = ps2live "saerro";
|
||||
"metagame.ps2.live" = ps2live "metagame";
|
||||
|
||||
# Generic store for /.well-known/ paths.
|
||||
"well-known.sapphic.engineer" = defaultConfig // {
|
||||
locations."=/.well-known/matrix/server" = let
|
||||
|
|
1
nixos/hosts/ps2live/.target
Normal file
1
nixos/hosts/ps2live/.target
Normal file
|
@ -0,0 +1 @@
|
|||
192.168.1.177
|
|
@ -1,18 +1,14 @@
|
|||
{ ... }: {
|
||||
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../templates/proxmox-lxc.nix
|
||||
../../server.nix
|
||||
../../features/systemd-boot.nix
|
||||
../../features/dns-cache.nix
|
||||
|
||||
../../features/podman.nix
|
||||
../../features/nginx.nix
|
||||
../../features/dns-cache.nix
|
||||
|
||||
../../stacks/ps2.live
|
||||
];
|
||||
|
||||
networking.hostName = "blueberry";
|
||||
networking.hostName = "ps2live";
|
||||
system.stateVersion = "24.05";
|
||||
services.qemuGuest.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue