{ config, pkgs, ... }: let stateVersion = "23.05"; home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-${stateVersion}.tar.gz"; in { imports = [ ./hardware-configuration.nix (import "${home-manager}/nixos") ]; boot = { loader.systemd-boot.enable = true; kernelParams = [ "i915.enable_psr=0" ]; }; networking.hostName = "x260"; time.timeZone = "Europe/Amsterdam"; i18n.defaultLocale = "en_US.UTF-8"; services.xserver = { enable = true; displayManager.gdm = { enable = true; settings = { daemon = { AutomaticLoginEnable = true; AutomaticLogin = "pim"; }; }; }; desktopManager.gnome.enable = true; excludePackages = with pkgs; [ xterm ]; }; home-manager.users.pim = import ./home.nix {inherit pkgs stateVersion; }; users.users.pim = { isNormalUser = true; extraGroups = [ "wheel" ]; }; environment = { systemPackages = with pkgs; [ vim wget curl git btop ripgrep ]; gnome.excludePackages = with pkgs; [ gnome-tour gnome.epiphany gnome.geary gnome-console ]; }; system.stateVersion = stateVersion; }