nixos/google_oslogin: run as root

This is needed in order to read the files in /var/google-users.d, as the program
sets the permissions to 750 and the user and group to root.

See: https://github.com/GoogleCloudPlatform/guest-oslogin/blob/20250821.00/src/oslogin_utils.cc#L1337-L1338

Changed files
+1 -1
nixos
modules
+1 -1
nixos/modules/security/google_oslogin.nix
···
'';
};
services.openssh.authorizedKeysCommand = "/etc/ssh/authorized_keys_command_google_oslogin %u";
-
services.openssh.authorizedKeysCommandUser = "nobody";
+
services.openssh.authorizedKeysCommandUser = "root";
};
}