notify user when nixos deploy/activation completes
This commit is contained in:
parent
9503658dec
commit
dfbae7e7b5
|
@ -97,6 +97,11 @@
|
|||
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
|
||||
'';
|
||||
};
|
||||
system.activationScripts.notifyActive = {
|
||||
text = ''
|
||||
SWAYSOCK="$(ls /run/user/1000/sway-ipc.1000*.sock)" ${pkgs.sway}/bin/swaymsg -- exec "${pkgs.libnotify}/bin/notify-send 'nixos activated' 'version: $(cat $systemConfig/nixos-version)'"
|
||||
'';
|
||||
};
|
||||
|
||||
# disable non-required packages like nano, perl, rsync, strace
|
||||
environment.defaultPackages = [];
|
||||
|
|
Loading…
Reference in New Issue
Block a user