Add a new home-manager role for starship.rs, a fast and customizable cross-shell prompt written in Rust. Configuration includes: - Bash and Zsh integration enabled - Clean character symbols (> for success, x for error) - Vi mode indicator support - Smart directory truncation (4 levels, truncate to repo root) - Git branch and status display - Nix shell indicator with snowflake symbol - Command duration for long-running commands (2s+) - Disabled noisy modules (language runtimes, cloud providers) Enabled in: home-desktop, home-laptop-compact, home-live-usb, home-media-center configurations. Closes: nixos-configs-uji
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ pkgs, globalInputs, system, ... }:
|
|
|
|
{
|
|
# Home Manager configuration for live USB environments
|
|
# Minimal setup without persistent services
|
|
|
|
home.username = "nixos";
|
|
home.homeDirectory = "/home/nixos";
|
|
home.stateVersion = "24.05";
|
|
|
|
# Enable minimal roles only (no sync or kdeconnect for live environment)
|
|
home.roles = {
|
|
base.enable = true;
|
|
desktop.enable = true;
|
|
tmux.enable = true;
|
|
plasma-manager.enable = true;
|
|
emacs.enable = true;
|
|
i3_sway.enable = true;
|
|
starship.enable = true;
|
|
# development.enable = false; # Not needed for live USB
|
|
# communication.enable = false; # Not needed for live USB
|
|
# office.enable = false; # Not needed for live USB
|
|
# media.enable = false; # Not needed for live USB
|
|
# sync.enable = false; # No persistent sync on live USB
|
|
# kdeconnect.enable = false; # No device integration on live USB
|
|
};
|
|
|
|
targets.genericLinux.enable = true;
|
|
home.sessionVariables = {};
|
|
home.sessionPath = [];
|
|
|
|
imports = [
|
|
./roles
|
|
./roles/base-linux
|
|
];
|
|
|
|
# Live USB specific overrides can go here if needed
|
|
} |