{ config, pkgs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ];
Bootloader
boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.initrd.luks.devices.nix-crypt.device = "/dev/disk/by-uuid/uuidhere"; networking.hostName = "nixtest";
Enable networking
networking.networkmanager.enable = true;
Enable the X11 windowing system.
services.xserver.enable = true; services.xserver.excludePackages = [ pkgs.xterm ];
Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true; services.displayManager.autoLogin.user = "nixuser"; services.xserver.desktopManager.gnome.enable = true;
Do not install the following default GNOME apps.
https://discourse.nixos.org/t/howto-disable-most-gnome-default-applications-and-what-they-are/13505
environment.gnome.excludePackages = with pkgs.gnome; [ epiphany # web browser geary # email client simple-scan # document scanner yelp # help viewer gnome-contacts gnome-calendar gnome-maps pkgs.gnome-tour ];
Enable sound with pipewire.
hardware.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; };
Define a user account. Don't forget to set a password with ‘passwd’.
users.users.nixuser = { isNormalUser = true; description = "nixuser"; extraGroups = [ "networkmanager" "wheel" ]; packages = with pkgs; [ home-manager ]; };
Install firefox.
programs.firefox.enable = true;
List packages installed in system profile.
These tools are important to root user.
environment.systemPackages = with pkgs; [ htop micro tmux wget # desktop-file-utils ]; system.stateVersion = "24.05"; }
Comments
No comments yet
Please complete the captcha