feat: add notification after rebuild succeeds
This commit is contained in:
parent
2b71d19006
commit
c926deb63a
1 changed files with 6 additions and 1 deletions
|
@ -23,7 +23,12 @@
|
|||
mv-bad-creation-date = ''exiftool -if 'not $CreateDate' -p '$FileName' "$PWD/$argv[1]" | xargs -I {} mv -i "$PWD/$argv[1]/{}" "$argv[2]"'';
|
||||
rename-images = rf ./rename_images.fish;
|
||||
fish_prompt = rf ./fish_prompt.fish;
|
||||
rebuild = "env --chdir $HOME/.nixconf sudo nixos-rebuild switch --flake .#$(hostname)";
|
||||
rebuild = ''
|
||||
env --chdir $HOME/.nixconf sudo nixos-rebuild switch --flake .#$(hostname) \
|
||||
&& ${pkgs.libnotify}/bin/notify-send nixos-rebuild "Rebuild complete" \
|
||||
-a nixos-rebuild \
|
||||
-i ${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue