{ config, lib, pkgs, ... }: { imports= [ # Include the results of the hardware scan. ./hardware-configuration.nix ];
# Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable=true; boot.loader.efi.canTouchEfiVariables=true;
networking.hostName="nixos"; # Define your hostname. # Pick only one of the below networking options. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. networking.networkmanager.enable=true; # Easiest to use and most distros use this by default.
# Set your time zone. time.timeZone="Asia/Shanghai";
# Enable the X11 windowing system. services.xserver.enable=true;
nixpkgs.config= { allowUnfree=true; };
# Enable the KDE Desktop Environment. services.displayManager.sddm.enable=true; services.displayManager.sddm.wayland.enable=true; services.desktopManager.plasma6.enable=true;
# Configure keymap in X11 services.xserver.xkb.layout="us"; # services.xserver.xkb.options = "eurosign:e,caps:escape";
# Enable CUPS to print documents. services.printing.enable=true;
# Enable touchpad support (enabled default in most desktopManager). services.libinput.enable=true;
programs.firefox.enable=true;
# Define a user account. Don't forget to set a password with ‘passwd’. users.users.yoimiya= { isNormalUser=true; createHome=true; home="/home/yoimiya"; extraGroups= [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user. packages=with pkgs; [ tree ]; };
environment.systemPackages=with pkgs; [ vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. wget v2ray v2raya ];
system.stateVersion="24.11"; # Did you read the comment? }