- Reorganize directory structure into core/, features/, and themes/ - Colocate application Nix logic, configs, scripts, and theme overrides - Implement 'Inversion of Control' for theming: apps now pull theme-specific layouts - Update flake.nix and shared library paths to match the new structure - Document the new Feature-Centric architecture in README.md
40 lines
871 B
Nix
40 lines
871 B
Nix
{ config, lib, ... }:
|
|
|
|
{
|
|
programs.bash = {
|
|
enable = true;
|
|
|
|
bashrcExtra = ''
|
|
if [[ -f ~/.config/nomarchy/default/bash/rc ]]; then
|
|
source ~/.config/nomarchy/default/bash/rc
|
|
fi
|
|
'';
|
|
|
|
shellAliases = lib.mkDefault {
|
|
# File system
|
|
lsa = "ls -a";
|
|
|
|
# Directories
|
|
".." = "cd ..";
|
|
"..." = "cd ../..";
|
|
"...." = "cd ../../..";
|
|
|
|
# Tools
|
|
c = "opencode";
|
|
d = "docker";
|
|
r = "rails";
|
|
t = "tmux attach || tmux new -s Work";
|
|
|
|
# Git
|
|
g = "git";
|
|
gcm = "git commit -m";
|
|
gcam = "git commit -a -m";
|
|
gcad = "git commit -a --amend";
|
|
|
|
# NixOS commands
|
|
sys-update = "sudo nixos-rebuild switch --flake /etc/nixos#default --impure";
|
|
env-update = "nomarchy-preflight-migration && home-manager switch --flake /etc/nixos#default --impure";
|
|
};
|
|
};
|
|
}
|