21 bite-sized beginner tutorials (Web Basics, APIs & Data), the 8-backend blog engine series, 4 blog frontends, 2 React starters, 3 NixOS desktops and 4 Rust API/pipeline boilerplates. Every folder is a complete, self-contained project with its own README. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VGNxPf9PrSG2kzrxSvn45Y
63 lines
1.6 KiB
Nix
63 lines
1.6 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
imports = [ ./hardware-configuration.nix ];
|
|
|
|
# Release of first install; used for stateful data migrations.
|
|
# Do not bump when upgrading nixpkgs.
|
|
system.stateVersion = "26.05";
|
|
|
|
# Boot (UEFI).
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
networking.hostName = "desktop"; # rename me
|
|
networking.networkmanager.enable = true;
|
|
|
|
time.timeZone = "UTC"; # e.g. "Europe/Berlin"
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 14d";
|
|
};
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# KDE Plasma 6 on Wayland via SDDM.
|
|
services.displayManager.sddm = {
|
|
enable = true;
|
|
wayland.enable = true;
|
|
};
|
|
services.desktopManager.plasma6.enable = true;
|
|
|
|
# Trim a few default Plasma apps; add back what you miss.
|
|
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
|
elisa # music player
|
|
khelpcenter
|
|
];
|
|
|
|
# Audio: PipeWire with ALSA and PulseAudio compatibility.
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
|
|
fonts.packages = with pkgs; [
|
|
nerd-fonts.jetbrains-mono
|
|
noto-fonts
|
|
noto-fonts-color-emoji
|
|
];
|
|
|
|
users.users.user = { # rename me (also in flake.nix and home/user.nix)
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" "networkmanager" ];
|
|
initialPassword = "changeme"; # change with `passwd` after first login
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [ git vim wget ];
|
|
}
|