An opinionated NixOS configuration with Hyprland, featuring: - Modular flake-based architecture - Parameterized user configuration (username, timezone, locale, etc.) - Classical/antiquity theme with Thomas Cole wallpapers - Full Hyprland setup with waybar, rofi, swaync - Custom utility scripts (screenshots, screen recording, WiFi QR) - Neovim with LSP support - Interactive installer for existing NixOS systems - ISO builder for fresh installations Flake outputs: - nixosConfigurations.example - Test configuration - nixosConfigurations.installer - ISO installer - packages.iso - Bootable ISO image - apps.default - Interactive installer - lib.mkHost - Host builder function - templates.default - Starter template Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
49 lines
973 B
Nix
49 lines
973 B
Nix
# Shell configuration (Zsh + Starship)
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
programs.zsh = {
|
|
enable = true;
|
|
shellAliases = {
|
|
ls = "eza --icons";
|
|
ll = "eza -l --icons";
|
|
la = "eza -la --icons";
|
|
update = "sudo nixos-rebuild switch --flake ~/.config/nomarchy#";
|
|
gc = "sudo nix-collect-garbage -d";
|
|
du = "dust";
|
|
dua = "dust -d 1";
|
|
duh = "dust ~";
|
|
dus = "dust /nix/store -d 2";
|
|
};
|
|
};
|
|
|
|
# Zoxide for smart directory jumping
|
|
programs.zoxide = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
|
|
# Starship prompt
|
|
programs.starship = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
settings = {
|
|
character = {
|
|
success_symbol = "[>](bold green)";
|
|
error_symbol = "[x](bold red)";
|
|
};
|
|
git_branch = {
|
|
symbol = " ";
|
|
style = "purple";
|
|
};
|
|
directory = {
|
|
style = "blue";
|
|
truncate_to_repo = true;
|
|
};
|
|
};
|
|
};
|
|
}
|