Common¶
Source directory: modules/common/
ai-defaults.nix¶
modules/common/ai-defaults.nix
AI Provider Default Configuration Module Provides sensible defaults for AI provider configuration to eliminate duplication
- Enable option: Default AI provider configuration
Options: enable
Options declaration (Nix)
base-user.nix¶
No option declarations; see source for implementation.
default.nix¶
No option declarations; see source for implementation.
features.nix¶
- Enable option: Enable development tools
- Enable option: Python development
- Enable option: Go development
- Enable option: Node.js development
- Enable option: Java development
- Enable option: Lua development
- Enable option: Nix development
- Enable option: Shell development
- Enable option: Cargo/Rust development
- Enable option: GitHub Copilot CLI
- Enable option: GitHub development
- Enable option: DevShell development
- Enable option: Pre-commit hooks and linting
- Enable option: Enable virtualization
- Enable option: Enable Docker
- Enable option: Enable Podman
- Enable option: Enable Incus containers
- Enable option: Enable SPICE
- Enable option: Enable libvirt
- Enable option: Enable cloud tools
- Enable option: Enable AWS tools
- Enable option: Enable Azure tools
- Enable option: Enable Google Cloud tools
- Enable option: Enable Kubernetes tools
- Enable option: Enable Terraform tools
- Enable option: Enable security tools
- Enable option: Enable 1Password
- Enable option: Enable GnuPG
- Enable option: Enable AI tools
- Enable option: Enable Google Antigravity CLI (agy) — replaces gemini-cli (EOL 2026-06-18)
- Enable option: Enable LazyGit
- Enable option: Enable Thunderbird
- Enable option: Enable Obsidian
- Enable option: Enable Office tools
- Enable option: Enable Webcam tools
- Enable option: Enable Printing
- Enable option: Enable DroidCam
Options: enable, python, go, nodejs, java, lua, nix, shell, cargo, copilot-cli, github, devshell, precommit, docker, podman, incus, spice, spiceGuestAgent, libvirt, aws, azure, google, k8s, terraform, onepassword, gnupg, antigravity-cli, lazygit, thunderbird, obsidian, office, webcam, print, droidcam, claude-desktop
Options declaration (Nix)
options.features = {
development = {
enable = mkEnableOption "Enable development tools";
# Granular enablement options
python = mkEnableOption "Python development";
go = mkEnableOption "Go development";
nodejs = mkEnableOption "Node.js development";
java = mkEnableOption "Java development";
lua = mkEnableOption "Lua development";
nix = mkEnableOption "Nix development";
shell = mkEnableOption "Shell development";
cargo = mkEnableOption "Cargo/Rust development";
copilot-cli = mkEnableOption "GitHub Copilot CLI";
github = mkEnableOption "GitHub development";
devshell = mkEnableOption "DevShell development";
precommit = mkEnableOption "Pre-commit hooks and linting";
};
virtualization = {
enable = mkEnableOption "Enable virtualization";
docker = mkEnableOption "Enable Docker";
podman = mkEnableOption "Enable Podman";
incus = mkEnableOption "Enable Incus containers";
spice = mkEnableOption "Enable SPICE";
spiceGuestAgent = mkEnableOption ''
the spice-vdagent guest daemon. Only meaningful when THIS machine is
itself a SPICE/VM guest. On a physical host it has no SPICE session
and logs "Error getting active session: No data available" on a
tight loop, so it stays off even when SPICE (USB redirection / client
tools for running VMs locally) is enabled'';
libvirt = mkEnableOption "Enable libvirt";
};
cloud = {
enable = mkEnableOption "Enable cloud tools";
aws = mkEnableOption "Enable AWS tools";
azure = mkEnableOption "Enable Azure tools";
google = mkEnableOption "Enable Google Cloud tools";
k8s = mkEnableOption "Enable Kubernetes tools";
terraform = mkEnableOption "Enable Terraform tools";
};
security = {
enable = mkEnableOption "Enable security tools";
onepassword = mkEnableOption "Enable 1Password";
gnupg = mkEnableOption "Enable GnuPG";
};
ai = {
enable = mkEnableOption "Enable AI tools";
antigravity-cli = mkEnableOption "Enable Google Antigravity CLI (agy) — replaces gemini-cli (EOL 2026-06-18)";
claude-desktop = mkOption {
type = types.bool;
default = true;
description = "Enable Claude Desktop GUI application";
};
};
programs = {
lazygit = mkEnableOption "Enable LazyGit";
thunderbird = mkEnableOption "Enable Thunderbird";
obsidian = mkEnableOption "Enable Obsidian";
office = mkEnableOption "Enable Office tools";
webcam = mkEnableOption "Enable Webcam tools";
print = mkEnableOption "Enable Printing";
};
media = {
droidcam = mkEnableOption "Enable DroidCam";
};
}
metrics-user.nix¶
modules/common/metrics-user.nix
No option declarations; see source for implementation.
networking.nix¶
Network Configuration Module Provides network profile management and stability enhancements
- Enable option: Network stability enhancements to prevent connection changes
Options: enable, profile, interfaceSwitchDelayMs
Options declaration (Nix)
options.features.networking = {
profile = mkOption {
type = types.enum [ "desktop" "server" "minimal" ];
default = "desktop";
description = "Network profile to use";
};
stableConnection = {
enable = mkEnableOption "Network stability enhancements to prevent connection changes";
interfaceSwitchDelayMs = mkOption {
type = types.int;
default = 5000;
description = "Delay in milliseconds before switching network interfaces";
example = 3000;
};
};
}
user-avatar.nix¶
modules/common/user-avatar.nix
No option declarations; see source for implementation.