code domain

This commit is contained in:
Vinzenz Schroeter 2025-05-01 15:14:32 +02:00
parent 3240ba9bdf
commit 4aa418f562
4 changed files with 56 additions and 34 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, inputs,... }: { pkgs, inputs, ... }:
{ {
security.acme = { security.acme = {
acceptTerms = true; acceptTerms = true;
@ -20,31 +20,40 @@
recommendedOptimisation = true; recommendedOptimisation = true;
virtualHosts = virtualHosts =
#let let
# servicesDomain = "services.zerforschen.plus"; servicesDomain = "services.zerforschen.plus";
# mkServiceConfig = host: port: { mkServiceConfig =
# addSSL = true; { host, port }:
# enableACME = true; {
# locations."/" = { addSSL = true;
# proxyPass = "http://${host}:${toString port}/"; enableACME = true;
# extraConfig = '' locations."/" = {
# # bind to tailscale ip proxyPass = "http://${host}:${toString port}/";
# proxy_bind 100.88.118.60; extraConfig = ''
# # pam auth # bind to tailscale ip
# limit_except OPTIONS { proxy_bind 100.88.118.60;
# auth_pam "Password Required"; # pam auth
# auth_pam_service_name "nginx"; limit_except OPTIONS {
# } auth_pam "Password Required";
# ''; auth_pam_service_name "nginx";
# }; }
# }; '';
# pc2 = "vinzenz-pc2.donkey-pentatonic.ts.net"; };
#in };
pc2 = "vinzenz-pc2.donkey-pentatonic.ts.net";
in
{ {
#"vscode.${servicesDomain}" = lib.mkMerge [ "code.${servicesDomain}" = lib.mkMerge [
# (mkServiceConfig pc2 8542) (mkServiceConfig {
# { locations."/".proxyWebsockets = true; } host = pc2;
#]; port = 8542;
})
{ locations."/".proxyWebsockets = true; }
];
"view.${servicesDomain}" = mkServiceConfig {
host = pc2;
port = 1313;
};
"zerforschen.plus" = { "zerforschen.plus" = {
addSSL = true; addSSL = true;

View file

@ -2,7 +2,8 @@
config, config,
pkgs, pkgs,
... ...
}: { }:
{
# Configure keymap in X11 # Configure keymap in X11
services.xserver.xkb = { services.xserver.xkb = {
layout = "de"; layout = "de";

View file

@ -1,10 +1,18 @@
{lib, ...}: { { lib, ... }:
{
boot = { boot = {
kernelModules = ["kvm-intel"]; kernelModules = [ "kvm-intel" ];
extraModulePackages = []; extraModulePackages = [ ];
initrd = { initrd = {
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"]; availableKernelModules = [
kernelModules = []; "xhci_pci"
"ahci"
"nvme"
"usbhid"
"usb_storage"
"sd_mod"
];
kernelModules = [ ];
}; };
}; };
@ -12,18 +20,21 @@
"/" = { "/" = {
device = "/dev/disk/by-uuid/27eccf93-a79f-4fcb-8588-ec55d913508f"; device = "/dev/disk/by-uuid/27eccf93-a79f-4fcb-8588-ec55d913508f";
fsType = "btrfs"; fsType = "btrfs";
options = ["subvol=@"]; options = [ "subvol=@" ];
}; };
"/boot" = { "/boot" = {
device = "/dev/disk/by-uuid/85D4-43FC"; device = "/dev/disk/by-uuid/85D4-43FC";
fsType = "vfat"; fsType = "vfat";
options = ["fmask=0077" "dmask=0077"]; options = [
"fmask=0077"
"dmask=0077"
];
}; };
}; };
swapDevices = [ swapDevices = [
{device = "/dev/disk/by-uuid/bf9d19fb-499b-4bfb-b67d-131fa5bf8259";} { device = "/dev/disk/by-uuid/bf9d19fb-499b-4bfb-b67d-131fa5bf8259"; }
]; ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";

View file

@ -21,6 +21,7 @@
8543 8543
8544 8544
80 80
1313
]; ];
}; };
}; };