112 lines
2.7 KiB
Nix
112 lines
2.7 KiB
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
||
{ 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;
|
||
|
||
networking.hostName = "nixos-usb"; # Define your hostname.
|
||
networking.networkmanager.enable = true;
|
||
|
||
# Set your time zone.
|
||
time.timeZone = "Europe/Berlin";
|
||
|
||
# Select internationalisation properties.
|
||
i18n.defaultLocale = "de_DE.UTF-8";
|
||
|
||
i18n.extraLocaleSettings = {
|
||
LC_ADDRESS = "de_DE.UTF-8";
|
||
LC_IDENTIFICATION = "de_DE.UTF-8";
|
||
LC_MEASUREMENT = "de_DE.UTF-8";
|
||
LC_MONETARY = "de_DE.UTF-8";
|
||
LC_NAME = "de_DE.UTF-8";
|
||
LC_NUMERIC = "de_DE.UTF-8";
|
||
LC_PAPER = "de_DE.UTF-8";
|
||
LC_TELEPHONE = "de_DE.UTF-8";
|
||
LC_TIME = "de_DE.UTF-8";
|
||
};
|
||
|
||
# Enable the X11 windowing system.
|
||
services.xserver.enable = true;
|
||
|
||
# Enable the GNOME Desktop Environment.
|
||
services.xserver.displayManager.gdm.enable = true;
|
||
services.xserver.desktopManager.gnome.enable = true;
|
||
|
||
# Configure keymap in X11
|
||
services.xserver.xkb = {
|
||
layout = "de";
|
||
variant = "";
|
||
};
|
||
|
||
# Configure console keymap
|
||
console.keyMap = "de";
|
||
|
||
# Enable touchpad support
|
||
services.xserver.libinput.enable = true;
|
||
|
||
# Enable CUPS to print documents.
|
||
services.printing.enable = true;
|
||
|
||
# Enable sound with pipewire.
|
||
services.pulseaudio.enable = false;
|
||
security.rtkit.enable = true;
|
||
services.pipewire = {
|
||
enable = true;
|
||
alsa.enable = true;
|
||
alsa.support32Bit = true;
|
||
pulse.enable = true;
|
||
};
|
||
|
||
# Define a user account.
|
||
users.users.user = {
|
||
isNormalUser = true;
|
||
description = "user";
|
||
extraGroups = [ "networkmanager" "wheel" ];
|
||
shell = pkgs.bash;
|
||
# Set password after first boot with: passwd user
|
||
};
|
||
|
||
# Allow unfree packages (required for Obsidian, etc.)
|
||
nixpkgs.config.allowUnfree = true;
|
||
|
||
# List packages installed in system profile.
|
||
environment.systemPackages = with pkgs; [
|
||
# Core utilities
|
||
vim
|
||
git
|
||
curl
|
||
wget
|
||
openssh # for ssh/scp if needed
|
||
|
||
# Requested applications
|
||
obsidian
|
||
libreoffice
|
||
keepassxc
|
||
thunderbird
|
||
tor-browser
|
||
inkscape
|
||
gimp
|
||
pdfarranger
|
||
|
||
# GNOME & web apps
|
||
epiphany # GNOME Web — can install web apps
|
||
gnomeExtensions.gsconnect
|
||
gnomeExtensions.dash-to-dock
|
||
];
|
||
|
||
# Enable Firefox.
|
||
programs.firefox.enable = true;
|
||
|
||
# This value determines the NixOS release compatibility.
|
||
system.stateVersion = "25.11";
|
||
} |