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 = { programs.zsh = {
shellAliases = { shellAliases = {
snrt = "git -C ~/nixos add -A && time sudo nixos-rebuild test --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"; 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";
}; };
}; };
} }
-9
View File
@@ -2,23 +2,14 @@
config, config,
pkgs, pkgs,
pkgs-unstable, pkgs-unstable,
caelestia-shell,
lib,
... ...
}: let }: let
sisyphe = ../../assets/sisyphe.gif; sisyphe = ../../assets/sisyphe.gif;
pepe-music = ../../assets/pepe-music.gif; pepe-music = ../../assets/pepe-music.gif;
in { 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 home.file.".local/state/caelestia/wallpaper/path.txt" = { # dummy file. Does nothing. Prevent an error
enable = true; enable = true;
text = "${sisyphe}"; text = "${sisyphe}";
}; };
home.file.".face" = { home.file.".face" = {
# this is were caelestia will search for profiles pictures # this is were caelestia will search for profiles pictures