mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-10 07:58:30 +01:00
home-manager: Use extraSpecialArgs for shared variables
Makes it possible to avoid inconsistencies with duplicate code.
This commit is contained in:
parent
b004639ea3
commit
307a7fb543
@ -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)"
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -165,6 +165,14 @@ in
|
||||
|
||||
homeDirectory = "/home/${username}";
|
||||
};
|
||||
|
||||
extraSpecialArgs = {
|
||||
vars = {
|
||||
notifications = {
|
||||
duration = "2000";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.vmVariant = {
|
||||
|
Loading…
Reference in New Issue
Block a user