diff options
author | Janne Heß <janne@hess.ooo> | 2023-10-20 14:51:15 +0200 |
---|---|---|
committer | Janne Heß <janne@hess.ooo> | 2023-10-20 15:45:43 +0200 |
commit | a1012b216051b50a01bdff4c830a9d53e12bfb2e (patch) | |
tree | 639ee654580262fd60c79ec84175825372afc740 /nixos/modules/system/activation/switch-to-configuration.pl | |
parent | e4712e89ff825e93ac7d02376458fdf2e59bb63a (diff) |
nixos/switch-to-configuration: Allow not filtering units
Diffstat (limited to 'nixos/modules/system/activation/switch-to-configuration.pl')
-rwxr-xr-x | nixos/modules/system/activation/switch-to-configuration.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/system/activation/switch-to-configuration.pl b/nixos/modules/system/activation/switch-to-configuration.pl index e05f89bb0fb4b..b3ff3ac0abf30 100755 --- a/nixos/modules/system/activation/switch-to-configuration.pl +++ b/nixos/modules/system/activation/switch-to-configuration.pl @@ -599,7 +599,9 @@ while (my ($unit, $state) = each(%{$active_cur})) { $units_to_start{$unit} = 1; record_unit($start_list_file, $unit); # Don't spam the user with target units that always get started. - $units_to_filter{$unit} = 1; + if (($ENV{"STC_DISPLAY_ALL_UNITS"} // "") ne "1") { + $units_to_filter{$unit} = 1; + } } } |