{ config, pkgs, ... }: { imports = [ ./hardware-configuration.nix ]; networking.hostName = "nixos"; boot.loader.grub.device = "/dev/sda"; networking.interfaces.wlp3s0.useDHCP = true; boot.loader.grub.enable = true; time.timeZone = "Europe/Berlin"; networking.networkmanager.enable = true; i18n.defaultLocale = "en_US.UTF-8"; users.users.tom = { isNormalUser = true; extraGroups = [ "wheel" "networkmanager" "lxd"]; shell = pkgs.zsh; }; services.xserver.enable = true; services.xserver.autorun = false; services.xserver.displayManager.startx.enable = true; services.xserver.libinput.enable = true; environment.variables.EDITOR = "nvim"; environment.systemPackages = with pkgs; [ neovim git htop ncmpcpp w3m firefox wget tmux curl dmenu pass feh nixfmt neomutt acpi ranger ncdu mpc_cli lm_sensors pinentry-curses ]; programs.gnupg.agent = { enable = true; enableSSHSupport = true; pinentryFlavor = null; }; programs.zsh.enable = true; programs.zsh.autosuggestions.enable = true; programs.zsh.syntaxHighlighting.enable = true; fonts.fonts = with pkgs; [ hermit ]; system.stateVersion = "21.05"; virtualisation.lxd.enable = true; swapDevices = [ { device = "/swap"; size = 4096; } ]; }