diff --git a/hostsModules/laptop/home-manager/zsh.nix b/hostsModules/laptop/home-manager/zsh.nix index cc383e7..f7a2362 100644 --- a/hostsModules/laptop/home-manager/zsh.nix +++ b/hostsModules/laptop/home-manager/zsh.nix @@ -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"; }; }; } diff --git a/modules/home-manager/caelestia.nix b/modules/home-manager/caelestia.nix index 035539d..2f791f8 100644 --- a/modules/home-manager/caelestia.nix +++ b/modules/home-manager/caelestia.nix @@ -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