{ config, pkgs, ... }: { boot.loader.grub.enable = true; boot.loader.grub.device = "/dev/sda"; boot.loader.grub.useOSProber = true; boot.kernel.sysctl."net.core.rmem_max" = 2500000; #for quic time.timeZone = "Europe/Moscow"; i18n.defaultLocale = "en_US.UTF-8"; users.users.intelnuc = { isNormalUser = true; description = "intelnuc"; extraGroups = [ "networkmanager" "wheel" "docker"]; }; environment.systemPackages = with pkgs; [ git vim wget htop zenith pkgs.xorg.xauth docker docker-compose traefik lazydocker ]; networking = { firewall.enable = false; hostName = "intelnuc"; networkmanager.enable = true; }; systemd.services.NetworkManager-wait-online.enable = false; services.openssh.enable = true; services.tailscale.enable = true; services.adguardhome.enable = true; virtualisation = { podman = { enable = true; dockerCompat = true; }; }; systemd.services.grafanavpn = { enable = true; description = "grafana vpn"; wantedBy = [ "multi-user.target" ]; serviceConfig = { Restart = "on-failure"; RestartSec = "15"; Type="simple"; }; script = "/home/delta/scripts/vpn-connect-WB"; path = with pkgs; [ expect oath-toolkit openconnect ]; }; #services.nginx.enable = true; #services.nginx.virtualHosts."grafana_first" = { # forceSSL = false; # listen = [{port = 2000; addr="0.0.0.0"; ssl=false;}]; # locations."/".extraConfig = '' # proxy_set_header Host $host; # proxy_set_header X-Real-IP $remote_addr; # proxy_pass http://123.123.123.123:3000; # # proxy_set_header Upgrade $http_upgrade; # proxy_set_header Connection "upgrade"; # ''; # locations."/api/live/ws".extraConfig = '' # proxy_pass http://123.123.123.123:3000; # proxy_read_timeout 120; # proxy_pass_header X-XSRF-TOKEN; # proxy_set_header Origin "http://123.123.123.123:3000"; # proxy_http_version 1.1; # proxy_set_header Upgrade $http_upgrade; # proxy_set_header Connection "upgrade"; # ''; #}; #services.nginx.virtualHosts."grafana_second" = { # forceSSL = false; # listen = [{port = 2001; addr="0.0.0.0"; ssl=false;}]; # locations."/".extraConfig = '' # proxy_set_header Host $host; # proxy_set_header X-Real-IP $remote_addr; # proxy_pass http://123.123.123.123:3000; # ''; # locations."/api/live/ws".extraConfig = '' # proxy_pass http://123.123.123.123:3000; # proxy_read_timeout 120; # proxy_pass_header X-XSRF-TOKEN; # proxy_set_header Origin "http://123.123.123.123:3000"; # proxy_http_version 1.1; # proxy_set_header Upgrade $http_upgrade; # proxy_set_header Connection "upgrade"; # ''; #}; system.stateVersion = "22.11"; }