home-manager: manage most of the zsh files
This commit is contained in:
parent
69747dac8e
commit
b31beb0d56
26
home.nix
26
home.nix
@ -1,8 +1,18 @@
|
|||||||
{pkgs, ...}: {
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
home.username = "$USER";
|
home.username = "$USER";
|
||||||
home.homeDirectory = "/home/$USER";
|
home.homeDirectory = "/home/$USER";
|
||||||
home.stateVersion = "22.11";
|
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:
|
# build a configuration and switch:
|
||||||
# ➜ home-manager switch --no-out-link -b backup --flake~/utils/dotfiles#$USER
|
# ➜ home-manager switch --no-out-link -b backup --flake~/utils/dotfiles#$USER
|
||||||
|
|
||||||
@ -22,6 +32,20 @@
|
|||||||
source = .config/kitty/kitty.conf;
|
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" = {
|
".local/bin/battery.sh" = {
|
||||||
source = bin/battery.sh;
|
source = bin/battery.sh;
|
||||||
executable = true;
|
executable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user