mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 10:30:44 +02:00
caelestia: reload on rebuild
This commit is contained in:
@@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,24 +1,15 @@
|
|||||||
{
|
{
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user