This commit finalizes the multi-host deployment framework, introducing the laptop profile alongside the desktop. It integrates essential hardware services, declaratively binds the Hyprland compositor, and thoroughly documents the repository architecture. - Initialize `hosts/laptop` profile configured for the Niri compositor, utilizing `lib.mkForce` to override default `greetd` logic. - Declare `hyprland.conf` directly via Home Manager (`home.file`) to ensure reproducible compositor settings (blur, gaps, bindings). - Enable Bluetooth daemon (`hardware.bluetooth`) and printing services (`cups-pk-helper`) system-wide. - Configure default system typography with `inter` and `fira-code` via `fonts.fontconfig`. - Enhance `tuigreet` login screen with session memory, password asterisks, and a custom declarative greeting. - Add comprehensive inline documentation to all Nix modules and shell scripts, alongside a complete project `README.md`. - Update the Home Manager declarations in flake.nix to include home-manager.backupFileExtension = "backup" Rationale: Hardcoding the Hyprland configuration and core hardware services ensures the desktop is fully immutable. Branching the host profiles allows the laptop to share 100% of the user-space configurations (terminal, editor, shell aliases) while cleanly swapping the graphical compositor stack to Niri.
58 lines
1.7 KiB
Nix
58 lines
1.7 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
|
|
];
|
|
|
|
# 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";
|
|
}
|