caelestia: reload on rebuild

This commit is contained in:
2026-05-18 12:21:12 +02:00
parent 11c6b634f0
commit e6470f71a2
2 changed files with 8 additions and 17 deletions
+2 -2
View File
@@ -5,8 +5,8 @@
}: {
programs.zsh = {
shellAliases = {
snrt = "git -C ~/nixos add -A && time sudo nixos-rebuild test --flake ~/nixos/#laptop";
snrs = "git -C ~/nixos add -A && time sudo nixos-rebuild switch --flake ~/nixos/#laptop";
snrt = "git -C ~/nixos add -A && time sudo nixos-rebuild test --flake ~/nixos/#laptop && pkill shell || true && pkill caelestia-shell || true && caelestia-shell -n > /dev/null 2>&1 & disown";
snrs = "git -C ~/nixos add -A && time sudo nixos-rebuild switch --flake ~/nixos/#laptop && pkill shell || true && pkill caelestia-shell || true && caelestia-shell -n > /dev/null 2>&1 & disown";
};
};
}
+6 -15
View File
@@ -1,24 +1,15 @@
{
config,
pkgs,
pkgs-unstable,
caelestia-shell,
lib,
...
config,
pkgs,
pkgs-unstable,
...
}: let
sisyphe = ../../assets/sisyphe.gif;
pepe-music = ../../assets/pepe-music.gif;
sisyphe = ../../assets/sisyphe.gif;
pepe-music = ../../assets/pepe-music.gif;
in {
home.activation.reloadCaelestia = # reloads caelestia on rebuild
lib.hm.dag.entryAfter [ "reloadSystemd" ] ''
pkill caelestia-shell
pkill shell
caelestia-shell -n
'';
home.file.".local/state/caelestia/wallpaper/path.txt" = { # dummy file. Does nothing. Prevent an error
enable = true;
text = "${sisyphe}";
};
home.file.".face" = {
# this is were caelestia will search for profiles pictures