nixos/systems/common.nix
Julian Sutter 587b74d5d6 chore: Clean up repository code and structure
- Removed commented packages: cura, parsec-bin, bottles, stremio, gimp, calibre
- Removed commented code: Java enable, low-latency kernel, ROCm packages, bridges
- Removed trailing whitespace across multiple files
- Fixed typo: Depreciated -> Deprecated in networking
- Removed unused desktop/gnome.nix module (not referenced)
- Removed systems/common-headless.nix (duplicates common.nix)
- Removed nixpkgs.config.allowBroken setting
- Added result, *.swp, *~ to .gitignore
- Removed .clinerules file (deprecated, info in docs/agents.md)
- Updated docs/agents.md changelog with cleanup details
2026-02-03 22:33:03 -08:00

149 lines
3.1 KiB
Nix

{ config, pkgs, ... }:
{
# hardware
hardware.enableRedistributableFirmware = true;
services.fwupd.enable = true;
# Network
networking = {
extraHosts = "";
networkmanager = {
enable = true;
plugins = with pkgs; [
networkmanager-openvpn
networkmanager-openconnect
];
};
useDHCP = false; # Deprecated
};
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
# Nix
nix = {
# Automate garbage collection
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
package = pkgs.nixVersions.stable;
settings = {
auto-optimise-store = true;
trusted-users = [ "root" "jsutter" ];
experimental-features = [ "nix-command" "flakes" ];
keep-outputs = true;
keep-derivations = true;
};
};
system.stateVersion = "25.05";
nixpkgs.config.allowUnfree = true;
nixpkgs.config.nvidia.acceptLicense = true;
nixpkgs.config.nvidia.libsOnly = true;
# Location & internationalisation
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
# Services
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
services.openssh.enable = true;
security.polkit.enable = true;
programs.zsh.enable = true;
security.sudo.wheelNeedsPassword = false;
# System packages
environment.systemPackages = with pkgs; [
fzf
git
curl
file
gdb
unar
lsof
pciutils
htop
sysstat
nmap
powertop
gnupg
p7zip
rsync
bumblebee
libgdiplus
unzip
clinfo
s-tui
stress
wget
openssl
gnumake
kopia
dig
python3
pv
whois
kdePackages.xdg-desktop-portal-kde
fwupd
usbutils # lsusb
pciutils # lspci
util-linux # lsblk, lscpu
hwinfo # lsdev, lshal, hwinfo
lshw # lshw
nvme-cli
smartmontools
ripgrep
mesa-demos
];
services.flatpak.enable = true;
fonts.packages = with pkgs; [
noto-fonts-color-emoji
noto-fonts-cjk-sans
liberation_ttf
fira-code
fira-code-symbols
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
];
services.xserver.excludePackages = [ pkgs.xterm ];
documentation.nixos.enable = false;
systemd.network.wait-online.enable = false;
boot.initrd.systemd.network.wait-online.enable = false;
services.udev.extraRules = ''
# Allow plugdev group full access to USB devices
SUBSYSTEM=="usb", MODE="0664", GROUP="plugdev"
'';
nix.settings.download-buffer-size = 536870912;
}