mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
caelestia: reload on rebuild
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,23 +2,14 @@
|
||||
config,
|
||||
pkgs,
|
||||
pkgs-unstable,
|
||||
caelestia-shell,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user