Move host-specific files under hosts/<name>/ so a second machine can be added without forking the repo. Split system/users.nix and system/display-manager.nix into per-option subfolders, separate the home-manager packages list into a shared base and a personal bundle, extract networking.hostName out of the shared networking module, and inline the git identity into the per-host home.nix. Add .gitignore guardrails to keep secrets out.
26 lines
505 B
Nix
26 lines
505 B
Nix
{ ... }:
|
|
|
|
{
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
|
|
history.size = 10000;
|
|
history.ignoreAllDups = true;
|
|
history.path = "$HOME/.zsh_history";
|
|
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
plugins = [ "git" "sudo" ];
|
|
theme = "aussiegeek";
|
|
};
|
|
|
|
shellAliases = {
|
|
btw = "echo I use NixOS";
|
|
reload-nixos = "sudo nixos-rebuild switch --flake ~/nixos-dotfiles";
|
|
};
|
|
};
|
|
}
|