{ 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";
}
Attached Files
Likes: 0
Dislikes: 0
Views: 162
10/10/2024
JavaScript is not enabled in your browser. Most features and paste content is missing . Switch to full experience by editing url from /nojs/[link] to /share/[link]