home-manager: manage most of the zsh files

This commit is contained in:
surtur 2022-09-07 22:33:02 +02:00
parent 69747dac8e
commit b31beb0d56
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -1,8 +1,18 @@
{pkgs, ...}: {
{
lib,
pkgs,
...
}: {
home.username = "$USER";
home.homeDirectory = "/home/$USER";
home.stateVersion = "22.11";
home.activation = {
checkBemenuDraculaInZshDir = lib.hm.dag.entryAfter ["writeBoundary"] ''
$DRY_RUN_CMD test -d .zsh/bemenu-dracula || echo "TODO: link bemenu-dracula to .zsh"
'';
};
# build a configuration and switch:
# ➜ home-manager switch --no-out-link -b backup --flake~/utils/dotfiles#$USER
@ -22,6 +32,20 @@
source = .config/kitty/kitty.conf;
};
# begin zsh-related.
".zshenv" = {
source = ./.zshenv;
};
".zsh/aliases.zsh" = {
source = .zsh/aliases.zsh;
};
".zsh/functions.zsh" = {
source = .zsh/functions.zsh;
};
# end zsh-related.
".local/bin/battery.sh" = {
source = bin/battery.sh;
executable = true;