98 lines
2.3 KiB
Nix
98 lines
2.3 KiB
Nix
{ pkgs, inputs, ... }:
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
|
|
"${inputs.self}/modules/mizukios/machine.nix"
|
|
"${inputs.self}/modules/mizukios/desktop.nix"
|
|
"${inputs.self}/modules/mizukios/features/steam.nix"
|
|
"${inputs.self}/modules/mizukios/features/remote/sunshine.nix"
|
|
"${inputs.self}/modules/mizukios/features/remote/authorized-keys.nix"
|
|
"${inputs.self}/modules/mizukios/features/_1password.nix"
|
|
];
|
|
|
|
networking = {
|
|
hostName = "mafuyu";
|
|
};
|
|
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts."broadcast.epc.mizuki.guru".extraConfig = ''
|
|
@authApi path /api/auth /api/auth/*
|
|
handle @authApi {
|
|
reverse_proxy 127.0.0.1:1234
|
|
}
|
|
|
|
@backendApi path /api /api/*
|
|
handle @backendApi {
|
|
reverse_proxy 127.0.0.1:1108
|
|
}
|
|
|
|
reverse_proxy 127.0.0.1:1234
|
|
'';
|
|
virtualHosts."http://broadcast.epc.mizuki.arpa".extraConfig = ''
|
|
@preflight method OPTIONS
|
|
|
|
header {
|
|
Access-Control-Allow-Origin *
|
|
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS"
|
|
Access-Control-Allow-Headers *
|
|
}
|
|
|
|
respond @preflight "" 204
|
|
|
|
reverse_proxy 127.0.0.1:6769
|
|
'';
|
|
virtualHosts."https://broadcast.epc.mizuki.guru:30427".extraConfig = ''
|
|
@preflight method OPTIONS
|
|
|
|
header {
|
|
Access-Control-Allow-Origin *
|
|
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS"
|
|
Access-Control-Allow-Headers *
|
|
}
|
|
|
|
respond @preflight "" 204
|
|
|
|
reverse_proxy 127.0.0.1:6769
|
|
'';
|
|
virtualHosts."http://broadcast.epc.mizuki.arpa:8027".extraConfig = ''
|
|
@preflight method OPTIONS
|
|
|
|
header {
|
|
Access-Control-Allow-Origin *
|
|
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS"
|
|
Access-Control-Allow-Headers *
|
|
}
|
|
|
|
respond @preflight "" 204
|
|
|
|
reverse_proxy 127.0.0.1:1108
|
|
'';
|
|
};
|
|
|
|
services.displayManager = {
|
|
plasma-login-manager.enable = true;
|
|
autoLogin.user = "imnyang";
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
gtk3
|
|
gtk4
|
|
];
|
|
|
|
programs.nix-ld = {
|
|
enable = true;
|
|
libraries = with pkgs; [
|
|
gtk3
|
|
gtk4
|
|
glib
|
|
cairo
|
|
pango
|
|
gdk-pixbuf
|
|
atk
|
|
];
|
|
};
|
|
|
|
system.stateVersion = "26.05";
|
|
}
|