{ config, pkgs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ]; # Bootloader. boot = { loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; kernelPackages = pkgs.linuxPackages_latest; }; networking = { hostName = "nginx"; networkmanager.enable = true; }; # Set your time zone. time.timeZone = "Europe/Zurich"; system.autoUpgrade = { enable = true; allowReboot = true; rebootWindow = { lower = "01:00"; upper = "03:00"; }; }; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; # Configure keymap in X11 services.xserver.xkb = { layout = "ch"; variant = ""; }; # Configure console keymap console.keyMap = "sg"; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.tte = { isNormalUser = true; description = "tte"; extraGroups = [ "networkmanager" "wheel" ]; packages = with pkgs; []; }; # Allow unfree packages nixpkgs.config.allowUnfree = true; # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ vim wget curl git nginx acme ]; # Enable the OpenSSH daemon. services.openssh = { enable = true; settings.PermitRootLogin = "without-password"; }; services.nginx = { enable = true; virtualHosts = { "git.blubb.fish" = { addSSL = true; enableACME = true; locations."/".proxyPass = "http://10.0.0.24:3000/"; }; }; }; security.acme = { acceptTerms = true; defaults.email = "gentoo@blubb.fish"; }; # Open ports in the firewall. networking.firewall.allowedTCPPorts = [ 80 443 ]; # networking.firewall.allowedUDPPorts = [ ... ]; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "24.05"; # Did you read the comment? }