109 lines
2.8 KiB
Nix
109 lines
2.8 KiB
Nix
{ pkgs, inputs, ... }:
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
|
|
"${inputs.self}/modules/mizukios/base"
|
|
"${inputs.self}/modules/mizukios/features/system/boot.nix"
|
|
"${inputs.self}/modules/mizukios/features/fonts.nix"
|
|
"${inputs.self}/modules/mizukios/features/packages.nix"
|
|
"${inputs.self}/modules/mizukios/features/plasma.nix"
|
|
"${inputs.self}/modules/mizukios/features/system/sound.nix"
|
|
"${inputs.self}/modules/mizukios/features/catppuccin.nix"
|
|
"${inputs.self}/modules/mizukios/features/remote/ssh.nix"
|
|
"${inputs.self}/modules/mizukios/features/steam.nix"
|
|
"${inputs.self}/modules/mizukios/features/remote/sunshine.nix"
|
|
"${inputs.self}/modules/mizukios/features/_1password.nix"
|
|
];
|
|
|
|
networking = {
|
|
hostName = "mafuyu";
|
|
networkmanager.enable = true;
|
|
firewall.enable = false;
|
|
};
|
|
|
|
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";
|
|
};
|
|
|
|
users.users.imnyang.openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOHP3Z+AYrRh9f8TYyqChKfeyNm3lOe0F75AwRHTTaxD imnyang@mizuki"
|
|
];
|
|
|
|
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";
|
|
}
|