diff --git a/home/ironbar.nix b/home/ironbar.nix index b2c58163..2c865bcc 100644 --- a/home/ironbar.nix +++ b/home/ironbar.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, vars, ... }: let inherit (lib) singleton; @@ -176,7 +176,7 @@ in sleep 0.2 - notify-send -t 2000 "Mullvad" "$(mullvad status | choose 2)" + notify-send -t ${vars.notifications.duration} "Mullvad" "$(mullvad status | choose 2)" ''; }; diff --git a/modules/system.nix b/modules/system.nix index dfc2ef24..8f0f22a7 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -165,6 +165,14 @@ in homeDirectory = "/home/${username}"; }; + + extraSpecialArgs = { + vars = { + notifications = { + duration = "2000"; + }; + }; + }; }; virtualisation.vmVariant = {