Files
nixos-config/system/core.nix
T
kiskaadee 3597e035d3 refactor: transition repository to a standalone declarative workstation
- Remove headless server configuration, homelab services, and legacy host directories (`hosts/server/`, `hosts/laptop/`).
- Consolidate privileged system files into a clean `system/` directory (`core.nix`, `hardware.nix`, `desktop.nix`).
- Migrate Home Manager configuration into functional domain modules under `home/` (`desktop.nix`, `dev.nix`, `shell.nix`).
- Update `flake.nix` to expose a single `laptop` target.
- Overhaul documentation (`architecture.md`, `AGENTS.md`, `README.md`) to reflect the standalone architecture and homelab decoupling.

This refactor eliminates the multi-host maintenance tax by decoupling server infrastructure into the Core repository and simplifying workstation management around domain-driven cohesion.
2026-09-12 16:22:58 -05:00

68 lines
1.6 KiB
Nix

# ⚙️ Core System Configuration
# Foundational OS settings, bootloader, networking, users, and base system tools.
{ pkgs, inputs, ... }:
{
# Nix settings & Flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.registry.nixpkgs.flake = inputs.nixpkgs;
# Allow installation of unfree packages
nixpkgs.config.allowUnfree = true;
# EFI bootloader configuration
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Host identity & networking
networking.hostName = "laptop";
networking.networkmanager.enable = true;
# Regional and language settings
time.timeZone = "America/Bogota";
i18n.defaultLocale = "en_US.UTF-8";
# Primary user account definition
users.users.kiskaadee = {
isNormalUser = true;
extraGroups = [
"wheel" # Administrative access (sudo)
"docker" # Container management without sudo
"networkmanager" # Network configuration
"lp" # Printer management
"scanner" # Scanner access
];
};
# SSH daemon settings
services.openssh = {
enable = true;
ports = [ 22 ];
settings.PermitRootLogin = "no";
};
# Dynamic binary execution support (for unpatched binaries, language servers, VS Code server)
programs.nix-ld = {
enable = true;
libraries = with pkgs; [
stdenv.cc.cc.lib
zlib
glib
];
};
# System-wide administrative tools
environment.systemPackages = with pkgs; [
cups-pk-helper
system-config-printer
simple-scan
rclone
sops
age
];
# Compatibility state version
system.stateVersion = "26.05";
}