biggg refactor, holy shit

This commit is contained in:
Noa Aarts 2024-11-11 11:16:27 +01:00
parent a3da6ab3af
commit 4c55bc97f6
Signed by: noa
GPG key ID: 1850932741EFF672
10 changed files with 111 additions and 394 deletions

View file

@ -10,13 +10,12 @@ in
{
options.modules.apps.zsh = {
enable = lib.mkEnableOption "enable zsh with oh-my-zsh";
enableAliases = lib.mkEnableOption "whether to enable shellAliases";
};
config = lib.mkIf cfg.enable {
programs.zsh = {
enable = true;
shellAliases = lib.mkIf cfg.enableAliases {
shellAliases = {
update = "nix flake update --commit-lock-file $HOME/nixos && sudo nixos-rebuild switch --flake $HOME/nixos";
nb = "nix build -L";
ns = "nix shell -L";