Skip to content

Commit e89d79e

Browse files
committed
move mullvad location configuration higher
1 parent d3f3d38 commit e89d79e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

modules/mullvad.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ in {
104104
105105
${mullvadPkg}/bin/mullvad dns set custom ${concatStringsSep " " cfg.dns}
106106
107+
${optionalString (cfg.location != []) ''
108+
${mullvadPkg}/bin/mullvad relay set location ${escapeShellArgs cfg.location}
109+
''}
110+
107111
${optionalString cfg.killSwitch.enable ''
108112
${mullvadPkg}/bin/mullvad lockdown-mode set on
109113
${mullvadPkg}/bin/mullvad lan set ${
@@ -112,14 +116,11 @@ in {
112116
else "block"
113117
}
114118
''}
119+
115120
${optionalString (!cfg.killSwitch.enable) ''
116121
${mullvadPkg}/bin/mullvad lockdown-mode set off
117122
''}
118123
119-
${optionalString (cfg.location != []) ''
120-
${mullvadPkg}/bin/mullvad relay set location ${escapeShellArgs cfg.location}
121-
''}
122-
123124
${optionalString cfg.autoConnect ''
124125
${mullvadPkg}/bin/mullvad auto-connect set on
125126
${mullvadPkg}/bin/mullvad connect

0 commit comments

Comments
 (0)