Files
nixos-config/hosts/desktop/configuration.nix
T
kiskaadee 6c48a3601d feat(infra): add declarative homeserver container orchestrator
- Create `hosts/desktop/homeserver.nix`: Implement a systemd service to manage the Docker Compose application stack (Traefik, Authelia, etc.).
- Integrate `sops-nix` template generation for homelab secrets, creating an isolated `/run/secrets/homeserver.env` for containerized services.
- Update `secrets.yaml`: Populate keys for ACME, Authelia, and additional infrastructure providers.
- Integrate `homeserver.nix` into the desktop host configuration.

Rationale: Centralizes the orchestration of background services into the NixOS system lifecycle, ensuring reproducible service deployments and secure, dynamic secret injection at runtime.
2026-06-28 15:43:19 -05:00

61 lines
1.9 KiB
Nix

# 🖥️ Desktop Machine Configuration
# This file defines host-specific system configurations for the Desktop environment.
{ config, lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix # Desktop-specific disk and CPU configuration
../../modules/system/graphical.nix # System-wide graphical stack settings (DMS daemon)
../../modules/system/base.nix # General hardware-agnostic OS settings
./dynu.nix # Dynu DDNS update service
./traefik-deployments.nix # Traefik deployments secrets module
./homeserver.nix # Homeserver core services module
];
# Enable experimental Nix features (required for Flakes and newer command line tools)
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# System-wide fonts installed for general window manager / applications
fonts.packages = with pkgs; [
inter
nerd-fonts.fira-code
nerd-fonts.jetbrains-mono
nerd-fonts.roboto-mono
];
# Configure default fonts for system-wide alias fallbacks
fonts.fontconfig = {
enable = true;
defaultFonts = {
monospace = [ "Fira Code" ];
sansSerif = [ "Inter" ];
};
};
# EFI bootloader configuration
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Network identification
networking.hostName = "desktop";
# Define the main user profile
users.users.kiskaadee = {
isNormalUser = true;
extraGroups = [
"wheel" # Enable sudo access for administrative tasks
"docker" # Allows running docker commands without sudo
"networkmanager" # Allows modifying network configurations
];
};
# Host-specific graphical compositor (Hyprland window manager for desktop)
programs = {
hyprland.enable = true;
};
# Rebuild/State version. Do not modify.
system.stateVersion = "26.05";
}