Committed after system build
diff --git a/system/configuration.nix b/system/configuration.nix
index 28c001c..71cf34d 100644
--- a/system/configuration.nix
+++ b/system/configuration.nix
@@ -34,7 +34,9 @@
   security.apparmor.killUnconfinedConfinables = true;
 
   # Change the sudo askpass program
-  security.sudo.extraConfig = "Path askpass /nix/store/5x5y8amldf8p1llwsv60jalmfy51aq51-ssh-askpass-fullscreen-1.2/bin/ssh-askpass-fullscreen";
+  environment.variables = {
+    "SUDO_ASKPASS" = "/nix/store/5x5y8amldf8p1llwsv60jalmfy51aq51-ssh-askpass-fullscreen-1.2/bin/ssh-askpass-fullscreen";
+  };
 
   # Set your time zone.
   time.timeZone = "Europe/London";