several tower improvements

This commit is contained in:
Thilo Billerbeck 2025-01-17 00:19:40 +01:00
parent 36d4d13488
commit f29b928443
5 changed files with 15 additions and 40 deletions
home-manager

View file

@ -93,6 +93,9 @@ in
nextpnr
icestorm
icebreaker
php
(lib.hiPrio phpPackages.composer)
]
++ (
if (!config.machine.isGeneric) then

View file

@ -32,6 +32,10 @@ in
pre_commands = {
flakeUpgrade = "cd ${configPath} && ${pkgs.nixVersions.latest}/bin/nix flake update --commit-lock-file --verbose --repair";
};
post_commands = {
nixCollectGarbage = "nix-collect-garbage -d";
dockerPrune = "docker system prune -f";
};
};
};
}

View file

@ -18,21 +18,15 @@
update-local = "bash $HOME/.dotfiles/install";
sudo = "sudo --preserve-env=PATH env";
};
initExtra = ''
antidote = {
enable = true;
plugins = [
"ohmyzsh/ohmyzsh path:plugins/dotenv"
];
};
initExtraFirst = ''
ZSH_DOTENV_PROMPT=false
export PATH=~/.npm-global/bin:$PATH
source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh
'';
plugins = [
{
name = "zsh-nix-shell";
file = "nix-shell.plugin.zsh";
src = pkgs.fetchFromGitHub {
owner = "chisui";
repo = "zsh-nix-shell";
rev = "v0.8.0";
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
};
}
];
};
}