{ config, pkgs, modulesPath, ... }: { imports = [ # enable home manager (modulesPath + "/installer/scan/not-detected.nix") ]; nixpkgs.config = { allowUnfree = true; permittedInsecurePackages = [ "electron-12.2.3" ]; }; boot.loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; networking = { # wireless.enable = true; # Enables wireless support via wpa_supplicant. # wireless.userControlled.enable = true; # Enable networking networkmanager.enable = true; firewall = { enable = true; allowedTCPPortRanges = [ { # KDE Connect from = 1714; to = 1764; } ]; allowedUDPPortRanges = [ { # KDE Connect from = 1714; to = 1764; } ]; }; }; time.timeZone = "Europe/Berlin"; i18n = { defaultLocale = "en_US.UTF-8"; extraLocaleSettings = { LC_ADDRESS = "de_DE.UTF-8"; LC_IDENTIFICATION = "de_DE.UTF-8"; LC_MEASUREMENT = "de_DE.UTF-8"; LC_MONETARY = "de_DE.UTF-8"; LC_NAME = "de_DE.UTF-8"; LC_NUMERIC = "de_DE.UTF-8"; LC_PAPER = "de_DE.UTF-8"; LC_TELEPHONE = "de_DE.UTF-8"; LC_TIME = "de_DE.UTF-8"; }; }; services = { xserver = { # Enable the X11 windowing system / wayland depending on DE enable = true; # Configure keymap in X11 layout = "de"; xkbVariant = ""; }; # Enable CUPS to print documents. printing.enable = true; # Enable the OpenSSH daemon. openssh = { enable = true; settings = { PermitRootLogin = "no"; PasswordAuthentication = false; KbdInteractiveAuthentication = false; }; }; }; # Configure console keymap console.keyMap = "de"; # Enable sound with pipewire. sound.enable = true; hardware.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; }; system = { stateVersion = "22.11"; autoUpgrade.enable = true; # enable auto updates }; nix.gc = { automatic = true; dates = "00:30"; }; programs = { git = { enable = true; package = pkgs.gitFull; }; steam = { enable = true; remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server }; zsh.enable = true; }; environment = { pathsToLink = ["/share/zsh"]; # List packages installed in system profile. # systemPackages = []; }; }