mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2025-06-14 00:14:37 +02:00
several tower improvements
This commit is contained in:
parent
36d4d13488
commit
f29b928443
5 changed files with 15 additions and 40 deletions
home-manager
|
@ -93,6 +93,9 @@ in
|
|||
nextpnr
|
||||
icestorm
|
||||
icebreaker
|
||||
|
||||
php
|
||||
(lib.hiPrio phpPackages.composer)
|
||||
]
|
||||
++ (
|
||||
if (!config.machine.isGeneric) then
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue